Chromium Code Reviews| 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 "extensions/browser/api/web_request/web_request_api_constants.h" | 5 #include "extensions/browser/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"; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 const char kOnBeforeRedirect[] = "onBeforeRedirect"; | 55 const char kOnBeforeRedirect[] = "onBeforeRedirect"; |
| 56 const char kOnBeforeRequest[] = "onBeforeRequest"; | 56 const char kOnBeforeRequest[] = "onBeforeRequest"; |
| 57 const char kOnBeforeSendHeaders[] = "onBeforeSendHeaders"; | 57 const char kOnBeforeSendHeaders[] = "onBeforeSendHeaders"; |
| 58 const char kOnCompleted[] = "onCompleted"; | 58 const char kOnCompleted[] = "onCompleted"; |
| 59 const char kOnErrorOccurred[] = "onErrorOccurred"; | 59 const char kOnErrorOccurred[] = "onErrorOccurred"; |
| 60 const char kOnHeadersReceived[] = "onHeadersReceived"; | 60 const char kOnHeadersReceived[] = "onHeadersReceived"; |
| 61 const char kOnResponseStarted[] = "onResponseStarted"; | 61 const char kOnResponseStarted[] = "onResponseStarted"; |
| 62 const char kOnSendHeaders[] = "onSendHeaders"; | 62 const char kOnSendHeaders[] = "onSendHeaders"; |
| 63 const char kOnAuthRequired[] = "onAuthRequired"; | 63 const char kOnAuthRequired[] = "onAuthRequired"; |
| 64 | 64 |
| 65 const char kInvalidPublicSessionBlockingResponse[] = | |
| 66 "Only cancel allowed in Public Sessions."; | |
|
Devlin
2016/11/15 15:12:02
Maybe rephrase this to
"Only the 'cancel' action i
Ivan Šandrk
2016/11/15 16:07:40
Done.
| |
| 65 const char kInvalidRedirectUrl[] = "redirectUrl '*' is not a valid URL."; | 67 const char kInvalidRedirectUrl[] = "redirectUrl '*' is not a valid URL."; |
| 66 const char kInvalidBlockingResponse[] = | 68 const char kInvalidBlockingResponse[] = |
| 67 "cancel cannot be true in the presence of other keys."; | 69 "cancel cannot be true in the presence of other keys."; |
| 68 const char kInvalidRequestFilterUrl[] = "'*' is not a valid URL pattern."; | 70 const char kInvalidRequestFilterUrl[] = "'*' is not a valid URL pattern."; |
| 69 const char kBlockingPermissionRequired[] = | 71 const char kBlockingPermissionRequired[] = |
| 70 "You do not have permission to use blocking webRequest listeners. " | 72 "You do not have permission to use blocking webRequest listeners. " |
| 71 "Be sure to declare the webRequestBlocking permission in your " | 73 "Be sure to declare the webRequestBlocking permission in your " |
| 72 "manifest."; | 74 "manifest."; |
| 73 const char kHostPermissionsRequired[] = | 75 const char kHostPermissionsRequired[] = |
| 74 "You need to request host permissions in the manifest file in order to " | 76 "You need to request host permissions in the manifest file in order to " |
| 75 "be notified about requests from the webRequest API."; | 77 "be notified about requests from the webRequest API."; |
| 76 const char kInvalidHeaderKeyCombination[] = | 78 const char kInvalidHeaderKeyCombination[] = |
| 77 "requestHeaders and responseHeaders cannot both be present."; | 79 "requestHeaders and responseHeaders cannot both be present."; |
| 78 const char kInvalidHeader[] = "Invalid header specification '*'."; | 80 const char kInvalidHeader[] = "Invalid header specification '*'."; |
| 79 const char kInvalidHeaderName[] = "Invalid header name."; | 81 const char kInvalidHeaderName[] = "Invalid header name."; |
| 80 const char kInvalidHeaderValue[] = "Header '*' has an invalid value."; | 82 const char kInvalidHeaderValue[] = "Header '*' has an invalid value."; |
| 81 | 83 |
| 82 } // namespace extension_web_request_api_constants | 84 } // namespace extension_web_request_api_constants |
| OLD | NEW |