OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/extensions/api/cookies/cookies_api_constants.h" | 5 #include "chrome/browser/extensions/api/cookies/cookies_api_constants.h" |
6 | 6 |
7 namespace extensions { | 7 namespace extensions { |
8 namespace cookies_api_constants { | 8 namespace cookies_api_constants { |
9 | 9 |
10 // Keys | 10 // Keys |
11 const char kCauseKey[] = "cause"; | 11 const char kCauseKey[] = "cause"; |
12 const char kCookieKey[] = "cookie"; | 12 const char kCookieKey[] = "cookie"; |
13 const char kDomainKey[] = "domain"; | 13 const char kDomainKey[] = "domain"; |
14 const char kExpirationDateKey[] = "expirationDate"; | |
15 const char kHostOnlyKey[] = "hostOnly"; | |
16 const char kHttpOnlyKey[] = "httpOnly"; | |
17 const char kIdKey[] = "id"; | 14 const char kIdKey[] = "id"; |
18 const char kNameKey[] = "name"; | |
19 const char kPathKey[] = "path"; | |
20 const char kRemovedKey[] = "removed"; | 15 const char kRemovedKey[] = "removed"; |
21 const char kSecureKey[] = "secure"; | |
22 const char kSessionKey[] = "session"; | |
23 const char kStoreIdKey[] = "storeId"; | |
24 const char kTabIdsKey[] = "tabIds"; | 16 const char kTabIdsKey[] = "tabIds"; |
25 const char kUrlKey[] = "url"; | |
26 const char kValueKey[] = "value"; | |
27 | 17 |
28 // Cause Constants | 18 // Cause Constants |
29 extern const char kEvictedChangeCause[] = "evicted"; | 19 extern const char kEvictedChangeCause[] = "evicted"; |
30 extern const char kExpiredChangeCause[] = "expired"; | 20 extern const char kExpiredChangeCause[] = "expired"; |
31 extern const char kExpiredOverwriteChangeCause[] = "expired_overwrite"; | 21 extern const char kExpiredOverwriteChangeCause[] = "expired_overwrite"; |
32 extern const char kExplicitChangeCause[] = "explicit"; | 22 extern const char kExplicitChangeCause[] = "explicit"; |
33 extern const char kOverwriteChangeCause[] = "overwrite"; | 23 extern const char kOverwriteChangeCause[] = "overwrite"; |
34 | 24 |
35 // Events | 25 // Events |
36 const char kOnChanged[] = "cookies.onChanged"; | 26 const char kOnChanged[] = "cookies.onChanged"; |
37 | 27 |
38 // Errors | 28 // Errors |
39 const char kCookieSetFailedError[] = | 29 const char kCookieSetFailedError[] = |
40 "Failed to parse or set cookie named \"*\"."; | 30 "Failed to parse or set cookie named \"*\"."; |
41 const char kInvalidStoreIdError[] = "Invalid cookie store id: \"*\"."; | 31 const char kInvalidStoreIdError[] = "Invalid cookie store id: \"*\"."; |
42 const char kInvalidUrlError[] = "Invalid url: \"*\"."; | 32 const char kInvalidUrlError[] = "Invalid url: \"*\"."; |
43 const char kNoCookieStoreFoundError[] = | 33 const char kNoCookieStoreFoundError[] = |
44 "No accessible cookie store found for the current execution context."; | 34 "No accessible cookie store found for the current execution context."; |
45 const char kNoHostPermissionsError[] = | 35 const char kNoHostPermissionsError[] = |
46 "No host permissions for cookies at url: \"*\"."; | 36 "No host permissions for cookies at url: \"*\"."; |
47 | 37 |
48 } // namespace cookies_api_constants | 38 } // namespace cookies_api_constants |
49 } // namespace extensions | 39 } // namespace extensions |
OLD | NEW |