| 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 17 matching lines...) Expand all Loading... |
| 28 const char kHeaderNameKey[] = "name"; | 28 const char kHeaderNameKey[] = "name"; |
| 29 const char kHeaderValueKey[] = "value"; | 29 const char kHeaderValueKey[] = "value"; |
| 30 const char kHeaderBinaryValueKey[] = "binaryValue"; | 30 const char kHeaderBinaryValueKey[] = "binaryValue"; |
| 31 const char kIsProxyKey[] = "isProxy"; | 31 const char kIsProxyKey[] = "isProxy"; |
| 32 const char kSchemeKey[] = "scheme"; | 32 const char kSchemeKey[] = "scheme"; |
| 33 const char kRealmKey[] = "realm"; | 33 const char kRealmKey[] = "realm"; |
| 34 const char kAuthCredentialsKey[] = "authCredentials"; | 34 const char kAuthCredentialsKey[] = "authCredentials"; |
| 35 const char kUsernameKey[] = "username"; | 35 const char kUsernameKey[] = "username"; |
| 36 const char kPasswordKey[] = "password"; | 36 const char kPasswordKey[] = "password"; |
| 37 | 37 |
| 38 const char kOnBeforeRedirect[] = "experimental.webRequest.onBeforeRedirect"; | 38 const char kOnBeforeRedirect[] = "webRequest.onBeforeRedirect"; |
| 39 const char kOnBeforeRequest[] = "experimental.webRequest.onBeforeRequest"; | 39 const char kOnBeforeRequest[] = "webRequest.onBeforeRequest"; |
| 40 const char kOnBeforeSendHeaders[] = | 40 const char kOnBeforeSendHeaders[] = "webRequest.onBeforeSendHeaders"; |
| 41 "experimental.webRequest.onBeforeSendHeaders"; | 41 const char kOnCompleted[] = "webRequest.onCompleted"; |
| 42 const char kOnCompleted[] = "experimental.webRequest.onCompleted"; | 42 const char kOnErrorOccurred[] = "webRequest.onErrorOccurred"; |
| 43 const char kOnErrorOccurred[] = "experimental.webRequest.onErrorOccurred"; | 43 const char kOnHeadersReceived[] = "webRequest.onHeadersReceived"; |
| 44 const char kOnHeadersReceived[] = "experimental.webRequest.onHeadersReceived"; | 44 const char kOnResponseStarted[] = "webRequest.onResponseStarted"; |
| 45 const char kOnResponseStarted[] = "experimental.webRequest.onResponseStarted"; | 45 const char kOnSendHeaders[] = "webRequest.onSendHeaders"; |
| 46 const char kOnSendHeaders[] = "experimental.webRequest.onSendHeaders"; | 46 const char kOnAuthRequired[] = "webRequest.onAuthRequired"; |
| 47 const char kOnAuthRequired[] = "experimental.webRequest.onAuthRequired"; | |
| 48 | 47 |
| 49 | 48 |
| 50 const char kInvalidRedirectUrl[] = "redirectUrl '*' is not a valid URL."; | 49 const char kInvalidRedirectUrl[] = "redirectUrl '*' is not a valid URL."; |
| 51 const char kInvalidBlockingResponse[] = | 50 const char kInvalidBlockingResponse[] = |
| 52 "cancel cannot be true in the presence of other keys."; | 51 "cancel cannot be true in the presence of other keys."; |
| 53 const char kInvalidRequestFilterUrl[] = "'*' is not a valid URL pattern."; | 52 const char kInvalidRequestFilterUrl[] = "'*' is not a valid URL pattern."; |
| 53 const char kBlockingPermissionRequired[] = |
| 54 "You do not have permission to use blocking webRequest listeners. " |
| 55 "Be sure to declare the webRequest_blocking permission in your " |
| 56 "manifest."; |
| 54 | 57 |
| 55 } // namespace extension_webrequest_api_constants | 58 } // namespace extension_webrequest_api_constants |
| OLD | NEW |