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

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

Issue 10012004: Implemented proper support for checking schemes and requested resource types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed 'scheme' to 'schemes' Created 8 years, 8 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[] = "experimental.webRequest.onRequest"; 11 const char kOnRequest[] = "experimental.webRequest.onRequest";
12 12
13 // Keys of dictionaries. 13 // Keys of dictionaries.
14 const char kInstanceTypeKey[] = "instanceType"; 14 const char kInstanceTypeKey[] = "instanceType";
15 const char kRedirectUrlKey[] = "redirectUrl"; 15 const char kRedirectUrlKey[] = "redirectUrl";
16 const char kSchemeKey[] = "scheme"; 16 const char kResourceTypeKey[] = "resourceType";
17 const char kSchemesKey[] = "schemes";
17 18
18 // Values of dictionaries, in particular instance types 19 // Values of dictionaries, in particular instance types
19 const char kCancelRequestType[] = "experimental.webRequest.CancelRequest"; 20 const char kCancelRequestType[] = "experimental.webRequest.CancelRequest";
20 const char kRedirectRequestType[] = "experimental.webRequest.RedirectRequest"; 21 const char kRedirectRequestType[] = "experimental.webRequest.RedirectRequest";
21 const char kRequestMatcherType[] = "experimental.webRequest.RequestMatcher"; 22 const char kRequestMatcherType[] = "experimental.webRequest.RequestMatcher";
22 23
23 24
24 } // namespace declarative_webrequest_constants 25 } // namespace declarative_webrequest_constants
25 } // namespace extensions 26 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698