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 // Constants used for the WebRequest API. | 5 // Constants used for the WebRequest API. |
6 | 6 |
7 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONSTANT
S_H_ | 7 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONSTANT
S_H_ |
8 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONSTANT
S_H_ | 8 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONSTANT
S_H_ |
9 | 9 |
10 namespace extensions { | 10 namespace extensions { |
11 namespace declarative_webrequest_constants { | 11 namespace declarative_webrequest_constants { |
12 | 12 |
13 // Signals to which WebRequestRulesRegistries are registered. | 13 // Signals to which WebRequestRulesRegistries are registered. |
14 extern const char kOnRequest[]; | 14 extern const char kOnRequest[]; |
15 | 15 |
16 // Keys of dictionaries. | 16 // Keys of dictionaries. |
| 17 extern const char kCookieKey[]; |
| 18 extern const char kDirectionKey[]; |
| 19 extern const char kDomainKey[]; |
| 20 extern const char kExpiresKey[]; |
| 21 extern const char kFilterKey[]; |
17 extern const char kFromKey[]; | 22 extern const char kFromKey[]; |
| 23 extern const char kHttpOnlyKey[]; |
18 extern const char kInstanceTypeKey[]; | 24 extern const char kInstanceTypeKey[]; |
19 extern const char kLowerPriorityThanKey[]; | 25 extern const char kLowerPriorityThanKey[]; |
| 26 extern const char kMaxAgeKey[]; |
| 27 extern const char kModificationKey[]; |
20 extern const char kNameKey[]; | 28 extern const char kNameKey[]; |
| 29 extern const char kPathKey[]; |
21 extern const char kRedirectUrlKey[]; | 30 extern const char kRedirectUrlKey[]; |
22 extern const char kResourceTypeKey[]; | 31 extern const char kResourceTypeKey[]; |
| 32 extern const char kSecureKey[]; |
23 extern const char kToKey[]; | 33 extern const char kToKey[]; |
24 extern const char kUrlKey[]; | 34 extern const char kUrlKey[]; |
25 extern const char kValueKey[]; | 35 extern const char kValueKey[]; |
26 | 36 |
27 // Values of dictionaries, in particular instance types | 37 // Values of dictionaries, in particular instance types |
| 38 extern const char kAddRequestCookieType[]; |
| 39 extern const char kAddResponseCookieType[]; |
28 extern const char kAddResponseHeaderType[]; | 40 extern const char kAddResponseHeaderType[]; |
29 extern const char kCancelRequestType[]; | 41 extern const char kCancelRequestType[]; |
| 42 extern const char kEditRequestCookieType[]; |
| 43 extern const char kEditResponseCookieType[]; |
30 extern const char kIgnoreRulesType[]; | 44 extern const char kIgnoreRulesType[]; |
31 extern const char kRedirectByRegExType[]; | 45 extern const char kRedirectByRegExType[]; |
32 extern const char kRedirectRequestType[]; | 46 extern const char kRedirectRequestType[]; |
33 extern const char kRedirectToEmptyDocumentType[]; | 47 extern const char kRedirectToEmptyDocumentType[]; |
34 extern const char kRedirectToTransparentImageType[]; | 48 extern const char kRedirectToTransparentImageType[]; |
| 49 extern const char kRemoveRequestCookieType[]; |
35 extern const char kRemoveRequestHeaderType[]; | 50 extern const char kRemoveRequestHeaderType[]; |
| 51 extern const char kRemoveResponseCookieType[]; |
36 extern const char kRemoveResponseHeaderType[]; | 52 extern const char kRemoveResponseHeaderType[]; |
37 extern const char kRequestMatcherType[]; | 53 extern const char kRequestMatcherType[]; |
38 extern const char kSetRequestHeaderType[]; | 54 extern const char kSetRequestHeaderType[]; |
39 | 55 |
40 } // namespace declarative_webrequest_constants | 56 } // namespace declarative_webrequest_constants |
41 } // namespace extensions | 57 } // namespace extensions |
42 | 58 |
43 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONST
ANTS_H_ | 59 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONST
ANTS_H_ |
OLD | NEW |