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

Side by Side Diff: extensions/browser/api/web_request/web_request_api.cc

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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
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 "extensions/browser/api/web_request/web_request_api.h" 5 #include "extensions/browser/api/web_request/web_request_api.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 using content::ResourceRequestInfo; 70 using content::ResourceRequestInfo;
71 using content::ResourceType; 71 using content::ResourceType;
72 72
73 namespace activity_log = activity_log_web_request_constants; 73 namespace activity_log = activity_log_web_request_constants;
74 namespace helpers = extension_web_request_api_helpers; 74 namespace helpers = extension_web_request_api_helpers;
75 namespace keys = extension_web_request_api_constants; 75 namespace keys = extension_web_request_api_constants;
76 76
77 namespace extensions { 77 namespace extensions {
78 78
79 namespace declarative_keys = declarative_webrequest_constants; 79 namespace declarative_keys = declarative_webrequest_constants;
80 namespace web_request = core_api::web_request; 80 namespace web_request = api::web_request;
81 81
82 namespace { 82 namespace {
83 83
84 const char kWebRequestEventPrefix[] = "webRequest."; 84 const char kWebRequestEventPrefix[] = "webRequest.";
85 85
86 // List of all the webRequest events. 86 // List of all the webRequest events.
87 const char* const kWebRequestEvents[] = { 87 const char* const kWebRequestEvents[] = {
88 keys::kOnBeforeRedirectEvent, 88 keys::kOnBeforeRedirectEvent,
89 web_request::OnBeforeRequest::kEventName, 89 web_request::OnBeforeRequest::kEventName,
90 keys::kOnBeforeSendHeadersEvent, 90 keys::kOnBeforeSendHeadersEvent,
(...skipping 2347 matching lines...) Expand 10 before | Expand all | Expand 10 after
2438 // Continue gracefully. 2438 // Continue gracefully.
2439 RunSync(); 2439 RunSync();
2440 } 2440 }
2441 2441
2442 bool WebRequestHandlerBehaviorChangedFunction::RunSync() { 2442 bool WebRequestHandlerBehaviorChangedFunction::RunSync() {
2443 helpers::ClearCacheOnNavigation(); 2443 helpers::ClearCacheOnNavigation();
2444 return true; 2444 return true;
2445 } 2445 }
2446 2446
2447 } // namespace extensions 2447 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/vpn_provider/vpn_service.cc ('k') | extensions/browser/api/webcam_private/visca_webcam.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698