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 #include "chrome/browser/extensions/api/web_request/web_request_api_constants.h" | 5 #include "chrome/browser/extensions/api/web_request/web_request_api_constants.h" |
6 | 6 |
7 namespace extension_web_request_api_constants { | 7 namespace extension_web_request_api_constants { |
8 | 8 |
9 const char kChallengerKey[] = "challenger"; | 9 const char kChallengerKey[] = "challenger"; |
10 const char kErrorKey[] = "error"; | 10 const char kErrorKey[] = "error"; |
11 const char kFrameIdKey[] = "frameId"; | 11 const char kFrameIdKey[] = "frameId"; |
12 const char kParentFrameIdKey[] = "parentFrameId"; | 12 const char kParentFrameIdKey[] = "parentFrameId"; |
13 const char kFromCache[] = "fromCache"; | 13 const char kFromCache[] = "fromCache"; |
14 const char kHostKey[] = "host"; | 14 const char kHostKey[] = "host"; |
15 const char kIpKey[] = "ip"; | 15 const char kIpKey[] = "ip"; |
16 const char kPortKey[] = "port"; | 16 const char kPortKey[] = "port"; |
17 const char kMethodKey[] = "method"; | 17 const char kMethodKey[] = "method"; |
18 const char kRedirectUrlKey[] = "redirectUrl"; | 18 const char kRedirectUrlKey[] = "redirectUrl"; |
19 const char kRequestIdKey[] = "requestId"; | 19 const char kRequestIdKey[] = "requestId"; |
20 const char kStatusCodeKey[] = "statusCode"; | 20 const char kStatusCodeKey[] = "statusCode"; |
21 const char kStatusLineKey[] = "statusLine"; | 21 const char kStatusLineKey[] = "statusLine"; |
22 const char kTabIdKey[] = "tabId"; | 22 const char kTabIdKey[] = "tabId"; |
23 const char kTimeStampKey[] = "timeStamp"; | 23 const char kTimeStampKey[] = "timeStamp"; |
24 const char kTypeKey[] = "type"; | 24 const char kTypeKey[] = "type"; |
25 const char kUrlKey[] = "url"; | 25 const char kUrlKey[] = "url"; |
| 26 const char kRequestBodyKey[] = "requestBody"; |
| 27 const char kRequestBodyErrorKey[] = "error"; |
| 28 const char kRequestBodyFormDataKey[] = "formData"; |
| 29 const char kRequestBodyRawKey[] = "raw"; |
| 30 const char kRequestBodyRawBytesKey[] = "bytes"; |
| 31 const char kRequestBodyRawFileKey[] = "file"; |
26 const char kRequestHeadersKey[] = "requestHeaders"; | 32 const char kRequestHeadersKey[] = "requestHeaders"; |
27 const char kResponseHeadersKey[] = "responseHeaders"; | 33 const char kResponseHeadersKey[] = "responseHeaders"; |
28 const char kHeaderNameKey[] = "name"; | 34 const char kHeaderNameKey[] = "name"; |
29 const char kHeaderValueKey[] = "value"; | 35 const char kHeaderValueKey[] = "value"; |
30 const char kHeaderBinaryValueKey[] = "binaryValue"; | 36 const char kHeaderBinaryValueKey[] = "binaryValue"; |
31 const char kIsProxyKey[] = "isProxy"; | 37 const char kIsProxyKey[] = "isProxy"; |
32 const char kSchemeKey[] = "scheme"; | 38 const char kSchemeKey[] = "scheme"; |
33 const char kRealmKey[] = "realm"; | 39 const char kRealmKey[] = "realm"; |
34 const char kAuthCredentialsKey[] = "authCredentials"; | 40 const char kAuthCredentialsKey[] = "authCredentials"; |
35 const char kUsernameKey[] = "username"; | 41 const char kUsernameKey[] = "username"; |
(...skipping 16 matching lines...) Expand all Loading... |
52 const char kInvalidRequestFilterUrl[] = "'*' is not a valid URL pattern."; | 58 const char kInvalidRequestFilterUrl[] = "'*' is not a valid URL pattern."; |
53 const char kBlockingPermissionRequired[] = | 59 const char kBlockingPermissionRequired[] = |
54 "You do not have permission to use blocking webRequest listeners. " | 60 "You do not have permission to use blocking webRequest listeners. " |
55 "Be sure to declare the webRequestBlocking permission in your " | 61 "Be sure to declare the webRequestBlocking permission in your " |
56 "manifest."; | 62 "manifest."; |
57 const char kHostPermissionsRequired[] = | 63 const char kHostPermissionsRequired[] = |
58 "You need to request host permissions in the manifest file in order to " | 64 "You need to request host permissions in the manifest file in order to " |
59 "be notified about requests from the webRequest API."; | 65 "be notified about requests from the webRequest API."; |
60 | 66 |
61 } // namespace extension_web_request_api_constants | 67 } // namespace extension_web_request_api_constants |
OLD | NEW |