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

Side by Side Diff: chrome/browser/extensions/api/declarative_webrequest/webrequest_constants.cc

Issue 11038031: Adding condition attributes for request headers to Declarative WebRequest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased (only). Created 8 years, 2 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 | Annotate | Revision Log
OLDNEW
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 "chrome/browser/extensions/api/declarative_webrequest/webrequest_consta nts.h" 5 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_consta nts.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 namespace declarative_webrequest_constants { 8 namespace declarative_webrequest_constants {
9 9
10 // Signals to which WebRequestRulesRegistries are registered. 10 // Signals to which WebRequestRulesRegistries are registered.
11 const char kOnRequest[] = "declarativeWebRequest.onRequest"; 11 const char kOnRequest[] = "declarativeWebRequest.onRequest";
12 12
13 // Keys of dictionaries. 13 // Keys of dictionaries.
14 const char kAgeLowerBoundKey[] = "ageLowerBound"; 14 const char kAgeLowerBoundKey[] = "ageLowerBound";
15 const char kAgeUpperBoundKey[] = "ageUpperBound"; 15 const char kAgeUpperBoundKey[] = "ageUpperBound";
16 const char kCookieKey[] = "cookie"; 16 const char kCookieKey[] = "cookie";
17 const char kContentTypeKey[] = "contentType"; 17 const char kContentTypeKey[] = "contentType";
18 const char kDirectionKey[] = "direction"; 18 const char kDirectionKey[] = "direction";
19 const char kDomainKey[] = "domain"; 19 const char kDomainKey[] = "domain";
20 const char kExcludeContentTypeKey[] = "excludeContentType"; 20 const char kExcludeContentTypeKey[] = "excludeContentType";
21 const char kExcludeRequestHeadersKey[] = "excludeRequestHeaders";
21 const char kExcludeResponseHeadersKey[] = "excludeResponseHeaders"; 22 const char kExcludeResponseHeadersKey[] = "excludeResponseHeaders";
22 const char kExpiresKey[] = "expires"; 23 const char kExpiresKey[] = "expires";
23 const char kFilterKey[] ="filter"; 24 const char kFilterKey[] ="filter";
24 const char kFromKey[] = "from"; 25 const char kFromKey[] = "from";
25 const char kHttpOnlyKey[] = "httpOnly"; 26 const char kHttpOnlyKey[] = "httpOnly";
26 const char kInstanceTypeKey[] = "instanceType"; 27 const char kInstanceTypeKey[] = "instanceType";
27 const char kLowerPriorityThanKey[] = "lowerPriorityThan"; 28 const char kLowerPriorityThanKey[] = "lowerPriorityThan";
28 const char kMaxAgeKey[] = "maxAge"; 29 const char kMaxAgeKey[] = "maxAge";
29 const char kModificationKey[] = "modification"; 30 const char kModificationKey[] = "modification";
30 const char kNameContainsKey[] = "nameContains"; 31 const char kNameContainsKey[] = "nameContains";
31 const char kNameEqualsKey[] = "nameEquals"; 32 const char kNameEqualsKey[] = "nameEquals";
32 const char kNameKey[] = "name"; 33 const char kNameKey[] = "name";
33 const char kNamePrefixKey[] = "namePrefix"; 34 const char kNamePrefixKey[] = "namePrefix";
34 const char kNameSuffixKey[] = "nameSuffix"; 35 const char kNameSuffixKey[] = "nameSuffix";
35 const char kPathKey[] = "path"; 36 const char kPathKey[] = "path";
36 const char kRedirectUrlKey[] = "redirectUrl"; 37 const char kRedirectUrlKey[] = "redirectUrl";
38 const char kRequestHeadersKey[] = "requestHeaders";
37 const char kResourceTypeKey[] = "resourceType"; 39 const char kResourceTypeKey[] = "resourceType";
38 const char kResponseHeadersKey[] = "responseHeaders"; 40 const char kResponseHeadersKey[] = "responseHeaders";
39 const char kSecureKey[] = "secure"; 41 const char kSecureKey[] = "secure";
40 const char kSessionCookieKey[] = "sessionCookie"; 42 const char kSessionCookieKey[] = "sessionCookie";
41 const char kThirdPartyKey[] = "thirdPartyForCookies"; 43 const char kThirdPartyKey[] = "thirdPartyForCookies";
42 const char kToKey[] = "to"; 44 const char kToKey[] = "to";
43 const char kUrlKey[] = "url"; 45 const char kUrlKey[] = "url";
44 const char kValueContainsKey[] = "valueContains"; 46 const char kValueContainsKey[] = "valueContains";
45 const char kValueEqualsKey[] = "valueEquals"; 47 const char kValueEqualsKey[] = "valueEquals";
46 const char kValueKey[] = "value"; 48 const char kValueKey[] = "value";
(...skipping 22 matching lines...) Expand all
69 "declarativeWebRequest.RemoveRequestHeader"; 71 "declarativeWebRequest.RemoveRequestHeader";
70 const char kRemoveResponseCookieType[] = 72 const char kRemoveResponseCookieType[] =
71 "declarativeWebRequest.RemoveResponseCookie"; 73 "declarativeWebRequest.RemoveResponseCookie";
72 const char kRemoveResponseHeaderType[] = 74 const char kRemoveResponseHeaderType[] =
73 "declarativeWebRequest.RemoveResponseHeader"; 75 "declarativeWebRequest.RemoveResponseHeader";
74 const char kRequestMatcherType[] = "declarativeWebRequest.RequestMatcher"; 76 const char kRequestMatcherType[] = "declarativeWebRequest.RequestMatcher";
75 const char kSetRequestHeaderType[] = "declarativeWebRequest.SetRequestHeader"; 77 const char kSetRequestHeaderType[] = "declarativeWebRequest.SetRequestHeader";
76 78
77 } // namespace declarative_webrequest_constants 79 } // namespace declarative_webrequest_constants
78 } // namespace extensions 80 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698