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 kIdKey[] = "id"; | 14 const char kIdKey[] = "id"; |
15 const char kRemovedKey[] = "removed"; | 15 const char kRemovedKey[] = "removed"; |
16 const char kTabIdsKey[] = "tabIds"; | 16 const char kTabIdsKey[] = "tabIds"; |
17 | 17 |
18 // Cause Constants | 18 // Cause Constants |
19 extern const char kEvictedChangeCause[] = "evicted"; | 19 const char kEvictedChangeCause[] = "evicted"; |
20 extern const char kExpiredChangeCause[] = "expired"; | 20 const char kExpiredChangeCause[] = "expired"; |
21 extern const char kExpiredOverwriteChangeCause[] = "expired_overwrite"; | 21 const char kExpiredOverwriteChangeCause[] = "expired_overwrite"; |
22 extern const char kExplicitChangeCause[] = "explicit"; | 22 const char kExplicitChangeCause[] = "explicit"; |
23 extern const char kOverwriteChangeCause[] = "overwrite"; | 23 const char kOverwriteChangeCause[] = "overwrite"; |
24 | 24 |
25 // Errors | 25 // Errors |
26 const char kCookieSetFailedError[] = | 26 const char kCookieSetFailedError[] = |
27 "Failed to parse or set cookie named \"*\"."; | 27 "Failed to parse or set cookie named \"*\"."; |
28 const char kInvalidStoreIdError[] = "Invalid cookie store id: \"*\"."; | 28 const char kInvalidStoreIdError[] = "Invalid cookie store id: \"*\"."; |
29 const char kInvalidUrlError[] = "Invalid url: \"*\"."; | 29 const char kInvalidUrlError[] = "Invalid url: \"*\"."; |
30 const char kNoCookieStoreFoundError[] = | 30 const char kNoCookieStoreFoundError[] = |
31 "No accessible cookie store found for the current execution context."; | 31 "No accessible cookie store found for the current execution context."; |
32 const char kNoHostPermissionsError[] = | 32 const char kNoHostPermissionsError[] = |
33 "No host permissions for cookies at url: \"*\"."; | 33 "No host permissions for cookies at url: \"*\"."; |
34 | 34 |
35 } // namespace cookies_api_constants | 35 } // namespace cookies_api_constants |
36 } // namespace extensions | 36 } // namespace extensions |
OLD | NEW |