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