Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: chrome/browser/extensions/extension_webrequest_api_constants.cc

Issue 8931006: WebRequest API should warn when a developer attempts to filter URLs without proper permissions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/extensions/extension_webrequest_api_constants.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_webrequest_api_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698