Home | History | Annotate | Download | only in extensions
      1 // Copyright (c) 2011 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 #include "chrome/browser/extensions/extension_cookies_api_constants.h"
      6 
      7 namespace extension_cookies_api_constants {
      8 
      9 // Keys
     10 const char kCauseKey[] = "cause";
     11 const char kCookieKey[] = "cookie";
     12 const char kDomainKey[] = "domain";
     13 const char kExpirationDateKey[] = "expirationDate";
     14 const char kHostOnlyKey[] = "hostOnly";
     15 const char kHttpOnlyKey[] = "httpOnly";
     16 const char kIdKey[] = "id";
     17 const char kNameKey[] = "name";
     18 const char kPathKey[] = "path";
     19 const char kRemovedKey[] = "removed";
     20 const char kSecureKey[] = "secure";
     21 const char kSessionKey[] = "session";
     22 const char kStoreIdKey[] = "storeId";
     23 const char kTabIdsKey[] = "tabIds";
     24 const char kUrlKey[] = "url";
     25 const char kValueKey[] = "value";
     26 
     27 // Cause Constants
     28 extern const char kEvictedChangeCause[] = "evicted";
     29 extern const char kExpiredChangeCause[] = "expired";
     30 extern const char kExpiredOverwriteChangeCause[] = "expired_overwrite";
     31 extern const char kExplicitChangeCause[] = "explicit";
     32 extern const char kOverwriteChangeCause[] = "overwrite";
     33 
     34 // Events
     35 const char kOnChanged[] = "cookies.onChanged";
     36 
     37 // Errors
     38 const char kCookieSetFailedError[] =
     39     "Failed to parse or set cookie named \"*\".";
     40 const char kInvalidStoreIdError[] = "Invalid cookie store id: \"*\".";
     41 const char kInvalidUrlError[] = "Invalid url: \"*\".";
     42 const char kNoCookieStoreFoundError[] =
     43     "No accessible cookie store found for the current execution context.";
     44 const char kNoHostPermissionsError[] =
     45     "No host permissions for cookies at url: \"*\".";
     46 
     47 }  // namespace extension_cookies_api_constants
     48