• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include "chrome/browser/extensions/api/cookies/cookies_api_constants.h"
6 
7 namespace extensions {
8 namespace cookies_api_constants {
9 
10 // Keys
11 const char kCauseKey[] = "cause";
12 const char kCookieKey[] = "cookie";
13 const char kDomainKey[] = "domain";
14 const char kIdKey[] = "id";
15 const char kRemovedKey[] = "removed";
16 const char kTabIdsKey[] = "tabIds";
17 
18 // Cause Constants
19 extern const char kEvictedChangeCause[] = "evicted";
20 extern const char kExpiredChangeCause[] = "expired";
21 extern const char kExpiredOverwriteChangeCause[] = "expired_overwrite";
22 extern const char kExplicitChangeCause[] = "explicit";
23 extern const char kOverwriteChangeCause[] = "overwrite";
24 
25 // Errors
26 const char kCookieSetFailedError[] =
27     "Failed to parse or set cookie named \"*\".";
28 const char kInvalidStoreIdError[] = "Invalid cookie store id: \"*\".";
29 const char kInvalidUrlError[] = "Invalid url: \"*\".";
30 const char kNoCookieStoreFoundError[] =
31     "No accessible cookie store found for the current execution context.";
32 const char kNoHostPermissionsError[] =
33     "No host permissions for cookies at url: \"*\".";
34 
35 }  // namespace cookies_api_constants
36 }  // namespace extensions
37