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

Side by Side Diff: chrome/browser/extensions/api/webrequest/webrequest_api_constants.cc

Issue 9701039: Refactor folders in chrome/browser/extensions/api (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Small change to includes in extension_event_router.cc Created 8 years, 9 months 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/extensions/api/webrequest/webrequest_api_constants.h"
6
7 namespace extension_webrequest_api_constants {
8
9 const char kChallengerKey[] = "challenger";
10 const char kErrorKey[] = "error";
11 const char kFrameIdKey[] = "frameId";
12 const char kParentFrameIdKey[] = "parentFrameId";
13 const char kFromCache[] = "fromCache";
14 const char kHostKey[] = "host";
15 const char kIpKey[] = "ip";
16 const char kPortKey[] = "port";
17 const char kMethodKey[] = "method";
18 const char kRedirectUrlKey[] = "redirectUrl";
19 const char kRequestIdKey[] = "requestId";
20 const char kStatusCodeKey[] = "statusCode";
21 const char kStatusLineKey[] = "statusLine";
22 const char kTabIdKey[] = "tabId";
23 const char kTimeStampKey[] = "timeStamp";
24 const char kTypeKey[] = "type";
25 const char kUrlKey[] = "url";
26 const char kRequestHeadersKey[] = "requestHeaders";
27 const char kResponseHeadersKey[] = "responseHeaders";
28 const char kHeaderNameKey[] = "name";
29 const char kHeaderValueKey[] = "value";
30 const char kHeaderBinaryValueKey[] = "binaryValue";
31 const char kIsProxyKey[] = "isProxy";
32 const char kSchemeKey[] = "scheme";
33 const char kRealmKey[] = "realm";
34 const char kAuthCredentialsKey[] = "authCredentials";
35 const char kUsernameKey[] = "username";
36 const char kPasswordKey[] = "password";
37
38 const char kOnBeforeRedirect[] = "webRequest.onBeforeRedirect";
39 const char kOnBeforeRequest[] = "webRequest.onBeforeRequest";
40 const char kOnBeforeSendHeaders[] = "webRequest.onBeforeSendHeaders";
41 const char kOnCompleted[] = "webRequest.onCompleted";
42 const char kOnErrorOccurred[] = "webRequest.onErrorOccurred";
43 const char kOnHeadersReceived[] = "webRequest.onHeadersReceived";
44 const char kOnResponseStarted[] = "webRequest.onResponseStarted";
45 const char kOnSendHeaders[] = "webRequest.onSendHeaders";
46 const char kOnAuthRequired[] = "webRequest.onAuthRequired";
47
48
49 const char kInvalidRedirectUrl[] = "redirectUrl '*' is not a valid URL.";
50 const char kInvalidBlockingResponse[] =
51 "cancel cannot be true in the presence of other keys.";
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 webRequestBlocking permission in your "
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.";
60
61 } // namespace extension_webrequest_api_constants
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698