Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / extensions / browser / api / declarative_webrequest / webrequest_constants.cc
blob48e35e7decd3c69acad8dc367d922aad92fc104e
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.
5 #include "extensions/browser/api/declarative_webrequest/webrequest_constants.h"
7 namespace extensions {
8 namespace declarative_webrequest_constants {
10 // Signals to which WebRequestRulesRegistries are registered.
11 const char kOnRequest[] = "declarativeWebRequest.onRequest";
12 const char kOnMessage[] = "declarativeWebRequest.onMessage";
14 // Keys of dictionaries.
15 const char kAgeLowerBoundKey[] = "ageLowerBound";
16 const char kAgeUpperBoundKey[] = "ageUpperBound";
17 const char kCookieKey[] = "cookie";
18 const char kContentTypeKey[] = "contentType";
19 const char kDomainKey[] = "domain";
20 const char kExcludeContentTypeKey[] = "excludeContentType";
21 const char kExcludeRequestHeadersKey[] = "excludeRequestHeaders";
22 const char kExcludeResponseHeadersKey[] = "excludeResponseHeaders";
23 const char kExpiresKey[] = "expires";
24 const char kFilterKey[] ="filter";
25 const char kFirstPartyForCookiesUrlKey[] = "firstPartyForCookiesUrl";
26 const char kFromKey[] = "from";
27 const char kHttpOnlyKey[] = "httpOnly";
28 const char kHasTagKey[] = "hasTag";
29 const char kInstanceTypeKey[] = "instanceType";
30 const char kLowerPriorityThanKey[] = "lowerPriorityThan";
31 const char kMaxAgeKey[] = "maxAge";
32 const char kMessageKey[] = "message";
33 const char kModificationKey[] = "modification";
34 const char kNameContainsKey[] = "nameContains";
35 const char kNameEqualsKey[] = "nameEquals";
36 const char kNameKey[] = "name";
37 const char kNamePrefixKey[] = "namePrefix";
38 const char kNameSuffixKey[] = "nameSuffix";
39 const char kPathKey[] = "path";
40 const char kRedirectUrlKey[] = "redirectUrl";
41 const char kRequestHeadersKey[] = "requestHeaders";
42 const char kResourceTypeKey[] = "resourceType";
43 const char kResponseHeadersKey[] = "responseHeaders";
44 const char kSecureKey[] = "secure";
45 const char kSessionCookieKey[] = "sessionCookie";
46 const char kStagesKey[] = "stages";
47 const char kThirdPartyKey[] = "thirdPartyForCookies";
48 const char kToKey[] = "to";
49 const char kUrlKey[] = "url";
50 const char kValueContainsKey[] = "valueContains";
51 const char kValueEqualsKey[] = "valueEquals";
52 const char kValueKey[] = "value";
53 const char kValuePrefixKey[] = "valuePrefix";
54 const char kValueSuffixKey[] = "valueSuffix";
56 // Enum string values
57 const char kOnBeforeRequestEnum[] = "onBeforeRequest";
58 const char kOnBeforeSendHeadersEnum[] = "onBeforeSendHeaders";
59 const char kOnHeadersReceivedEnum[] = "onHeadersReceived";
60 const char kOnAuthRequiredEnum[] = "onAuthRequired";
62 // Values of dictionaries, in particular instance types
63 const char kAddRequestCookieType[] = "declarativeWebRequest.AddRequestCookie";
64 const char kAddResponseCookieType[] = "declarativeWebRequest.AddResponseCookie";
65 const char kAddResponseHeaderType[] = "declarativeWebRequest.AddResponseHeader";
66 const char kCancelRequestType[] = "declarativeWebRequest.CancelRequest";
67 const char kEditRequestCookieType[] = "declarativeWebRequest.EditRequestCookie";
68 const char kEditResponseCookieType[] =
69 "declarativeWebRequest.EditResponseCookie";
70 const char kIgnoreRulesType[] = "declarativeWebRequest.IgnoreRules";
71 const char kRedirectRequestType[] = "declarativeWebRequest.RedirectRequest";
72 const char kRedirectByRegExType[] =
73 "declarativeWebRequest.RedirectByRegEx";
74 const char kRedirectToEmptyDocumentType[] =
75 "declarativeWebRequest.RedirectToEmptyDocument";
76 const char kRedirectToTransparentImageType[] =
77 "declarativeWebRequest.RedirectToTransparentImage";
78 const char kRemoveRequestCookieType[] =
79 "declarativeWebRequest.RemoveRequestCookie";
80 const char kRemoveRequestHeaderType[] =
81 "declarativeWebRequest.RemoveRequestHeader";
82 const char kRemoveResponseCookieType[] =
83 "declarativeWebRequest.RemoveResponseCookie";
84 const char kRemoveResponseHeaderType[] =
85 "declarativeWebRequest.RemoveResponseHeader";
86 const char kRequestMatcherType[] = "declarativeWebRequest.RequestMatcher";
87 const char kSendMessageToExtensionType[] =
88 "declarativeWebRequest.SendMessageToExtension";
89 const char kSetRequestHeaderType[] = "declarativeWebRequest.SetRequestHeader";
91 } // namespace declarative_webrequest_constants
92 } // namespace extensions