| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/extension_webrequest_api_constants.h" | 5 #include "chrome/browser/extensions/extension_webrequest_api_constants.h" |
| 6 | 6 |
| 7 namespace extension_webrequest_api_constants { | 7 namespace extension_webrequest_api_constants { |
| 8 | 8 |
| 9 const char kChallengerKey[] = "challenger"; | 9 const char kChallengerKey[] = "challenger"; |
| 10 const char kErrorKey[] = "error"; | 10 const char kErrorKey[] = "error"; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 const char kTimeStampKey[] = "timeStamp"; | 22 const char kTimeStampKey[] = "timeStamp"; |
| 23 const char kTypeKey[] = "type"; | 23 const char kTypeKey[] = "type"; |
| 24 const char kUrlKey[] = "url"; | 24 const char kUrlKey[] = "url"; |
| 25 const char kRequestHeadersKey[] = "requestHeaders"; | 25 const char kRequestHeadersKey[] = "requestHeaders"; |
| 26 const char kResponseHeadersKey[] = "responseHeaders"; | 26 const char kResponseHeadersKey[] = "responseHeaders"; |
| 27 const char kHeaderNameKey[] = "name"; | 27 const char kHeaderNameKey[] = "name"; |
| 28 const char kHeaderValueKey[] = "value"; | 28 const char kHeaderValueKey[] = "value"; |
| 29 const char kIsProxyKey[] = "isProxy"; | 29 const char kIsProxyKey[] = "isProxy"; |
| 30 const char kSchemeKey[] = "scheme"; | 30 const char kSchemeKey[] = "scheme"; |
| 31 const char kRealmKey[] = "realm"; | 31 const char kRealmKey[] = "realm"; |
| 32 const char kAuthCredentialsKey[] = "authCredentials"; |
| 33 const char kUsernameKey[] = "username"; |
| 34 const char kPasswordKey[] = "password"; |
| 32 | 35 |
| 33 const char kOnBeforeRedirect[] = "experimental.webRequest.onBeforeRedirect"; | 36 const char kOnBeforeRedirect[] = "experimental.webRequest.onBeforeRedirect"; |
| 34 const char kOnBeforeRequest[] = "experimental.webRequest.onBeforeRequest"; | 37 const char kOnBeforeRequest[] = "experimental.webRequest.onBeforeRequest"; |
| 35 const char kOnBeforeSendHeaders[] = | 38 const char kOnBeforeSendHeaders[] = |
| 36 "experimental.webRequest.onBeforeSendHeaders"; | 39 "experimental.webRequest.onBeforeSendHeaders"; |
| 37 const char kOnCompleted[] = "experimental.webRequest.onCompleted"; | 40 const char kOnCompleted[] = "experimental.webRequest.onCompleted"; |
| 38 const char kOnErrorOccurred[] = "experimental.webRequest.onErrorOccurred"; | 41 const char kOnErrorOccurred[] = "experimental.webRequest.onErrorOccurred"; |
| 39 const char kOnHeadersReceived[] = "experimental.webRequest.onHeadersReceived"; | 42 const char kOnHeadersReceived[] = "experimental.webRequest.onHeadersReceived"; |
| 40 const char kOnResponseStarted[] = "experimental.webRequest.onResponseStarted"; | 43 const char kOnResponseStarted[] = "experimental.webRequest.onResponseStarted"; |
| 41 const char kOnSendHeaders[] = "experimental.webRequest.onSendHeaders"; | 44 const char kOnSendHeaders[] = "experimental.webRequest.onSendHeaders"; |
| 42 const char kOnAuthRequired[] = "experimental.webRequest.onAuthRequired"; | 45 const char kOnAuthRequired[] = "experimental.webRequest.onAuthRequired"; |
| 43 | 46 |
| 44 | 47 |
| 45 const char kInvalidRedirectUrl[] = "redirectUrl '*' is not a valid URL."; | 48 const char kInvalidRedirectUrl[] = "redirectUrl '*' is not a valid URL."; |
| 46 const char kInvalidBlockingResponse[] = | 49 const char kInvalidBlockingResponse[] = |
| 47 "cancel cannot be true in the presence of other keys."; | 50 "cancel cannot be true in the presence of other keys."; |
| 48 const char kInvalidRequestFilterUrl[] = "'*' is not a valid URL pattern."; | 51 const char kInvalidRequestFilterUrl[] = "'*' is not a valid URL pattern."; |
| 49 | 52 |
| 50 } // namespace extension_webrequest_api_constants | 53 } // namespace extension_webrequest_api_constants |
| OLD | NEW |