| 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 kInstanceTypeKey[]; | 18 extern const char kInstanceTypeKey[]; |
| 19 extern const char kLowerPriorityThanKey[]; | 19 extern const char kLowerPriorityThanKey[]; |
| 20 extern const char kNameKey[]; | 20 extern const char kNameKey[]; |
| 21 extern const char kRedirectUrlKey[]; | 21 extern const char kRedirectUrlKey[]; |
| 22 extern const char kResourceTypeKey[]; | 22 extern const char kResourceTypeKey[]; |
| 23 extern const char kUrlKey[]; | 23 extern const char kUrlKey[]; |
| 24 extern const char kValueKey[]; | 24 extern const char kValueKey[]; |
| 25 | 25 |
| 26 // Values of dictionaries, in particular instance types | 26 // Values of dictionaries, in particular instance types |
| 27 extern const char kAddResponseHeaderType[]; |
| 27 extern const char kCancelRequestType[]; | 28 extern const char kCancelRequestType[]; |
| 28 extern const char kIgnoreRulesType[]; | 29 extern const char kIgnoreRulesType[]; |
| 29 extern const char kRedirectRequestType[]; | 30 extern const char kRedirectRequestType[]; |
| 30 extern const char kRedirectToEmptyDocumentType[]; | 31 extern const char kRedirectToEmptyDocumentType[]; |
| 31 extern const char kRedirectToTransparentImageType[]; | 32 extern const char kRedirectToTransparentImageType[]; |
| 32 extern const char kRemoveRequestHeaderType[]; | 33 extern const char kRemoveRequestHeaderType[]; |
| 34 extern const char kRemoveResponseHeaderType[]; |
| 33 extern const char kRequestMatcherType[]; | 35 extern const char kRequestMatcherType[]; |
| 34 extern const char kSetRequestHeaderType[]; | 36 extern const char kSetRequestHeaderType[]; |
| 35 | 37 |
| 36 } // namespace declarative_webrequest_constants | 38 } // namespace declarative_webrequest_constants |
| 37 } // namespace extensions | 39 } // namespace extensions |
| 38 | 40 |
| 39 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONST
ANTS_H_ | 41 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONST
ANTS_H_ |
| OLD | NEW |