| 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_WEB_REQUEST_WEB_REQUEST_API_CONSTANTS_H_ | |
| 8 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_CONSTANTS_H_ | |
| 9 | |
| 10 namespace extension_web_request_api_constants { | |
| 11 | |
| 12 // Keys. | |
| 13 extern const char kChallengerKey[]; | |
| 14 extern const char kErrorKey[]; | |
| 15 extern const char kFrameIdKey[]; | |
| 16 extern const char kParentFrameIdKey[]; | |
| 17 extern const char kFromCache[]; | |
| 18 extern const char kHostKey[]; | |
| 19 extern const char kIpKey[]; | |
| 20 extern const char kMethodKey[]; | |
| 21 extern const char kPortKey[]; | |
| 22 extern const char kRedirectUrlKey[]; | |
| 23 extern const char kRequestIdKey[]; | |
| 24 extern const char kStatusCodeKey[]; | |
| 25 extern const char kStatusLineKey[]; | |
| 26 extern const char kTabIdKey[]; | |
| 27 extern const char kTimeStampKey[]; | |
| 28 extern const char kTypeKey[]; | |
| 29 extern const char kUrlKey[]; | |
| 30 extern const char kRequestBodyKey[]; | |
| 31 extern const char kRequestBodyErrorKey[]; | |
| 32 extern const char kRequestBodyFormDataKey[]; | |
| 33 extern const char kRequestBodyRawKey[]; | |
| 34 extern const char kRequestBodyRawBytesKey[]; | |
| 35 extern const char kRequestBodyRawFileKey[]; | |
| 36 extern const char kPostDataKey[]; | |
| 37 extern const char kPostDataFormKey[]; | |
| 38 extern const char kRequestHeadersKey[]; | |
| 39 extern const char kResponseHeadersKey[]; | |
| 40 extern const char kHeadersKey[]; | |
| 41 extern const char kHeaderNameKey[]; | |
| 42 extern const char kHeaderValueKey[]; | |
| 43 extern const char kHeaderBinaryValueKey[]; | |
| 44 extern const char kIsProxyKey[]; | |
| 45 extern const char kMessageKey[]; | |
| 46 extern const char kSchemeKey[]; | |
| 47 extern const char kStageKey[]; | |
| 48 extern const char kRealmKey[]; | |
| 49 extern const char kAuthCredentialsKey[]; | |
| 50 extern const char kUsernameKey[]; | |
| 51 extern const char kPasswordKey[]; | |
| 52 | |
| 53 // Events. | |
| 54 extern const char kOnAuthRequiredEvent[]; | |
| 55 extern const char kOnBeforeRedirectEvent[]; | |
| 56 extern const char kOnBeforeRequestEvent[]; | |
| 57 extern const char kOnBeforeSendHeadersEvent[]; | |
| 58 extern const char kOnCompletedEvent[]; | |
| 59 extern const char kOnErrorOccurredEvent[]; | |
| 60 extern const char kOnHeadersReceivedEvent[]; | |
| 61 extern const char kOnResponseStartedEvent[]; | |
| 62 extern const char kOnSendHeadersEvent[]; | |
| 63 | |
| 64 // Stages. | |
| 65 extern const char kOnAuthRequired[]; | |
| 66 extern const char kOnBeforeRedirect[]; | |
| 67 extern const char kOnBeforeRequest[]; | |
| 68 extern const char kOnBeforeSendHeaders[]; | |
| 69 extern const char kOnCompleted[]; | |
| 70 extern const char kOnErrorOccurred[]; | |
| 71 extern const char kOnHeadersReceived[]; | |
| 72 extern const char kOnResponseStarted[]; | |
| 73 extern const char kOnSendHeaders[]; | |
| 74 | |
| 75 // Error messages. | |
| 76 extern const char kInvalidRedirectUrl[]; | |
| 77 extern const char kInvalidBlockingResponse[]; | |
| 78 extern const char kInvalidRequestFilterUrl[]; | |
| 79 extern const char kBlockingPermissionRequired[]; | |
| 80 extern const char kHostPermissionsRequired[]; | |
| 81 extern const char kInvalidHeaderKeyCombination[]; | |
| 82 extern const char kInvalidHeader[]; | |
| 83 extern const char kInvalidHeaderName[]; | |
| 84 extern const char kInvalidHeaderValue[]; | |
| 85 | |
| 86 } // namespace extension_web_request_api_constants | |
| 87 | |
| 88 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_CONSTANTS_H
_ | |
| OLD | NEW |