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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 const char kOnResponseStarted[] = "webRequest.onResponseStarted"; | 44 const char kOnResponseStarted[] = "webRequest.onResponseStarted"; |
45 const char kOnSendHeaders[] = "webRequest.onSendHeaders"; | 45 const char kOnSendHeaders[] = "webRequest.onSendHeaders"; |
46 const char kOnAuthRequired[] = "webRequest.onAuthRequired"; | 46 const char kOnAuthRequired[] = "webRequest.onAuthRequired"; |
47 | 47 |
48 | 48 |
49 const char kInvalidRedirectUrl[] = "redirectUrl '*' is not a valid URL."; | 49 const char kInvalidRedirectUrl[] = "redirectUrl '*' is not a valid URL."; |
50 const char kInvalidBlockingResponse[] = | 50 const char kInvalidBlockingResponse[] = |
51 "cancel cannot be true in the presence of other keys."; | 51 "cancel cannot be true in the presence of other keys."; |
52 const char kInvalidRequestFilterUrl[] = "'*' is not a valid URL pattern."; | 52 const char kInvalidRequestFilterUrl[] = "'*' is not a valid URL pattern."; |
53 const char kBlockingPermissionRequired[] = | 53 const char kBlockingPermissionRequired[] = |
54 "You do not have permission to use blocking webRequest listeners. " | 54 "You do not have permission to use blocking webRequest listeners. " |
55 "Be sure to declare the webRequestBlocking permission in your " | 55 "Be sure to declare the webRequestBlocking permission in your " |
56 "manifest."; | 56 "manifest."; |
| 57 const char kHostPermissionsRequired[] = |
| 58 "You need to request host permissions in the manifest file in order to " |
| 59 "be notified about requests from the webRequest API."; |
57 | 60 |
58 } // namespace extension_webrequest_api_constants | 61 } // namespace extension_webrequest_api_constants |
OLD | NEW |