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 // Constants used for the WebRequest API.
7 #ifndef EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONSTANTS_H_
8 #define EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONSTANTS_H_
10 namespace extensions
{
11 namespace declarative_webrequest_constants
{
13 // Signals to which WebRequestRulesRegistries are registered or listeners can
15 extern const char kOnRequest
[];
16 extern const char kOnMessage
[];
18 // Keys of dictionaries.
19 extern const char kAgeLowerBoundKey
[];
20 extern const char kAgeUpperBoundKey
[];
21 extern const char kCookieKey
[];
22 extern const char kContentTypeKey
[];
23 extern const char kDomainKey
[];
24 extern const char kExcludeContentTypeKey
[];
25 extern const char kExcludeRequestHeadersKey
[];
26 extern const char kExcludeResponseHeadersKey
[];
27 extern const char kExpiresKey
[];
28 extern const char kFilterKey
[];
29 extern const char kFirstPartyForCookiesUrlKey
[];
30 extern const char kFromKey
[];
31 extern const char kHttpOnlyKey
[];
32 extern const char kHasTagKey
[];
33 extern const char kInstanceTypeKey
[];
34 extern const char kLowerPriorityThanKey
[];
35 extern const char kMaxAgeKey
[];
36 extern const char kMessageKey
[];
37 extern const char kModificationKey
[];
38 extern const char kNameContainsKey
[];
39 extern const char kNameEqualsKey
[];
40 extern const char kNameKey
[];
41 extern const char kNamePrefixKey
[];
42 extern const char kNameSuffixKey
[];
43 extern const char kPathKey
[];
44 extern const char kRedirectUrlKey
[];
45 extern const char kRequestHeadersKey
[];
46 extern const char kResourceTypeKey
[];
47 extern const char kResponseHeadersKey
[];
48 extern const char kSecureKey
[];
49 extern const char kSessionCookieKey
[];
50 extern const char kStagesKey
[];
51 extern const char kThirdPartyKey
[];
52 extern const char kToKey
[];
53 extern const char kUrlKey
[];
54 extern const char kValueContainsKey
[];
55 extern const char kValueEqualsKey
[];
56 extern const char kValueKey
[];
57 extern const char kValuePrefixKey
[];
58 extern const char kValueSuffixKey
[];
61 extern const char kOnBeforeRequestEnum
[];
62 extern const char kOnBeforeSendHeadersEnum
[];
63 extern const char kOnHeadersReceivedEnum
[];
64 extern const char kOnAuthRequiredEnum
[];
66 // Values of dictionaries, in particular instance types
67 extern const char kAddRequestCookieType
[];
68 extern const char kAddResponseCookieType
[];
69 extern const char kAddResponseHeaderType
[];
70 extern const char kCancelRequestType
[];
71 extern const char kEditRequestCookieType
[];
72 extern const char kEditResponseCookieType
[];
73 extern const char kIgnoreRulesType
[];
74 extern const char kRedirectByRegExType
[];
75 extern const char kRedirectRequestType
[];
76 extern const char kRedirectToEmptyDocumentType
[];
77 extern const char kRedirectToTransparentImageType
[];
78 extern const char kRemoveRequestCookieType
[];
79 extern const char kRemoveRequestHeaderType
[];
80 extern const char kRemoveResponseCookieType
[];
81 extern const char kRemoveResponseHeaderType
[];
82 extern const char kRequestMatcherType
[];
83 extern const char kSendMessageToExtensionType
[];
84 extern const char kSetRequestHeaderType
[];
86 } // namespace declarative_webrequest_constants
87 } // namespace extensions
89 #endif // EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONSTANTS_H_