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

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

Issue 10449069: Support redirects by regular expression in declarative WebRequest API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 years, 6 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 // Constants used for the WebRequest API. 5 // Constants used for the WebRequest API.
6 6
7 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONSTANT S_H_ 7 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONSTANT S_H_
8 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONSTANT S_H_ 8 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONSTANT S_H_
9 #pragma once 9 #pragma once
10 10
11 namespace extensions { 11 namespace extensions {
12 namespace declarative_webrequest_constants { 12 namespace declarative_webrequest_constants {
13 13
14 // Signals to which WebRequestRulesRegistries are registered. 14 // Signals to which WebRequestRulesRegistries are registered.
15 extern const char kOnRequest[]; 15 extern const char kOnRequest[];
16 16
17 // Keys of dictionaries. 17 // Keys of dictionaries.
18 extern const char kFromKey[];
18 extern const char kInstanceTypeKey[]; 19 extern const char kInstanceTypeKey[];
19 extern const char kLowerPriorityThanKey[]; 20 extern const char kLowerPriorityThanKey[];
20 extern const char kNameKey[]; 21 extern const char kNameKey[];
21 extern const char kRedirectUrlKey[]; 22 extern const char kRedirectUrlKey[];
22 extern const char kResourceTypeKey[]; 23 extern const char kResourceTypeKey[];
24 extern const char kToKey[];
23 extern const char kUrlKey[]; 25 extern const char kUrlKey[];
24 extern const char kValueKey[]; 26 extern const char kValueKey[];
25 27
26 // Values of dictionaries, in particular instance types 28 // Values of dictionaries, in particular instance types
27 extern const char kAddResponseHeaderType[]; 29 extern const char kAddResponseHeaderType[];
28 extern const char kCancelRequestType[]; 30 extern const char kCancelRequestType[];
29 extern const char kIgnoreRulesType[]; 31 extern const char kIgnoreRulesType[];
32 extern const char kRedirectByRegExType[];
30 extern const char kRedirectRequestType[]; 33 extern const char kRedirectRequestType[];
31 extern const char kRedirectToEmptyDocumentType[]; 34 extern const char kRedirectToEmptyDocumentType[];
32 extern const char kRedirectToTransparentImageType[]; 35 extern const char kRedirectToTransparentImageType[];
33 extern const char kRemoveRequestHeaderType[]; 36 extern const char kRemoveRequestHeaderType[];
34 extern const char kRemoveResponseHeaderType[]; 37 extern const char kRemoveResponseHeaderType[];
35 extern const char kRequestMatcherType[]; 38 extern const char kRequestMatcherType[];
36 extern const char kSetRequestHeaderType[]; 39 extern const char kSetRequestHeaderType[];
37 40
38 } // namespace declarative_webrequest_constants 41 } // namespace declarative_webrequest_constants
39 } // namespace extensions 42 } // namespace extensions
40 43
41 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONST ANTS_H_ 44 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONST ANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698