| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Constants used for the WebRequest API. | |
| 6 | |
| 7 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBREQUEST_WEBREQUEST_API_CONSTANTS_H_ | |
| 8 #define CHROME_BROWSER_EXTENSIONS_API_WEBREQUEST_WEBREQUEST_API_CONSTANTS_H_ | |
| 9 #pragma once | |
| 10 | |
| 11 namespace extension_webrequest_api_constants { | |
| 12 | |
| 13 // Keys. | |
| 14 extern const char kChallengerKey[]; | |
| 15 extern const char kErrorKey[]; | |
| 16 extern const char kFrameIdKey[]; | |
| 17 extern const char kParentFrameIdKey[]; | |
| 18 extern const char kFromCache[]; | |
| 19 extern const char kHostKey[]; | |
| 20 extern const char kIpKey[]; | |
| 21 extern const char kMethodKey[]; | |
| 22 extern const char kPortKey[]; | |
| 23 extern const char kRedirectUrlKey[]; | |
| 24 extern const char kRequestIdKey[]; | |
| 25 extern const char kStatusCodeKey[]; | |
| 26 extern const char kStatusLineKey[]; | |
| 27 extern const char kTabIdKey[]; | |
| 28 extern const char kTimeStampKey[]; | |
| 29 extern const char kTypeKey[]; | |
| 30 extern const char kUrlKey[]; | |
| 31 extern const char kRequestHeadersKey[]; | |
| 32 extern const char kResponseHeadersKey[]; | |
| 33 extern const char kHeadersKey[]; | |
| 34 extern const char kHeaderNameKey[]; | |
| 35 extern const char kHeaderValueKey[]; | |
| 36 extern const char kHeaderBinaryValueKey[]; | |
| 37 extern const char kIsProxyKey[]; | |
| 38 extern const char kSchemeKey[]; | |
| 39 extern const char kRealmKey[]; | |
| 40 extern const char kAuthCredentialsKey[]; | |
| 41 extern const char kUsernameKey[]; | |
| 42 extern const char kPasswordKey[]; | |
| 43 | |
| 44 // Events. | |
| 45 extern const char kOnAuthRequired[]; | |
| 46 extern const char kOnBeforeRedirect[]; | |
| 47 extern const char kOnBeforeRequest[]; | |
| 48 extern const char kOnBeforeSendHeaders[]; | |
| 49 extern const char kOnCompleted[]; | |
| 50 extern const char kOnErrorOccurred[]; | |
| 51 extern const char kOnHeadersReceived[]; | |
| 52 extern const char kOnResponseStarted[]; | |
| 53 extern const char kOnSendHeaders[]; | |
| 54 | |
| 55 // Error messages. | |
| 56 extern const char kInvalidRedirectUrl[]; | |
| 57 extern const char kInvalidBlockingResponse[]; | |
| 58 extern const char kInvalidRequestFilterUrl[]; | |
| 59 extern const char kBlockingPermissionRequired[]; | |
| 60 extern const char kHostPermissionsRequired[]; | |
| 61 | |
| 62 } // namespace extension_webrequest_api_constants | |
| 63 | |
| 64 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBREQUEST_WEBREQUEST_API_CONSTANTS_H_ | |
| OLD | NEW |