Home | History | Annotate | Download | only in cookies
      1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 // Constants used for the Cookies API.
      6 
      7 #ifndef CHROME_BROWSER_EXTENSIONS_API_COOKIES_COOKIES_API_CONSTANTS_H_
      8 #define CHROME_BROWSER_EXTENSIONS_API_COOKIES_COOKIES_API_CONSTANTS_H_
      9 
     10 namespace extensions {
     11 namespace cookies_api_constants {
     12 
     13 // Keys.
     14 extern const char kCauseKey[];
     15 extern const char kCookieKey[];
     16 extern const char kDomainKey[];
     17 extern const char kIdKey[];
     18 extern const char kRemovedKey[];
     19 extern const char kTabIdsKey[];
     20 
     21 // Cause Constants
     22 extern const char kEvictedChangeCause[];
     23 extern const char kExpiredChangeCause[];
     24 extern const char kExpiredOverwriteChangeCause[];
     25 extern const char kExplicitChangeCause[];
     26 extern const char kOverwriteChangeCause[];
     27 
     28 // Events.
     29 extern const char kOnChanged[];
     30 
     31 // Errors.
     32 extern const char kCookieSetFailedError[];
     33 extern const char kInvalidStoreIdError[];
     34 extern const char kInvalidUrlError[];
     35 extern const char kNoCookieStoreFoundError[];
     36 extern const char kNoHostPermissionsError[];
     37 
     38 }  // namespace cookies_api_constants
     39 }  // namespace extensions
     40 
     41 #endif  // CHROME_BROWSER_EXTENSIONS_API_COOKIES_COOKIES_API_CONSTANTS_H_
     42