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

Side by Side Diff: extensions/browser/api/extensions_api_client.cc

Issue 596003002: Allow declarative webrequest and webrequest in extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up RuleRegistry in ExtensionsApiClient. Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/extensions_api_client.h" 5 #include "extensions/browser/api/extensions_api_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues t_delegate.h" 8 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues t_delegate.h"
9 #include "extensions/browser/guest_view/web_view/web_view_permission_helper_dele gate.h" 9 #include "extensions/browser/guest_view/web_view/web_view_permission_helper_dele gate.h"
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 WebViewGuest* web_view_guest) const { 48 WebViewGuest* web_view_guest) const {
49 return NULL; 49 return NULL;
50 } 50 }
51 51
52 WebViewPermissionHelperDelegate* ExtensionsAPIClient:: 52 WebViewPermissionHelperDelegate* ExtensionsAPIClient::
53 CreateWebViewPermissionHelperDelegate( 53 CreateWebViewPermissionHelperDelegate(
54 WebViewPermissionHelper* web_view_permission_helper) const { 54 WebViewPermissionHelper* web_view_permission_helper) const {
55 return new WebViewPermissionHelperDelegate(web_view_permission_helper); 55 return new WebViewPermissionHelperDelegate(web_view_permission_helper);
56 } 56 }
57 57
58 scoped_refptr<RulesRegistry> ExtensionsAPIClient::GetRulesRegistry(
59 content::BrowserContext* browser_context,
60 const RulesRegistry::WebViewKey& webview_key,
61 const std::string& event_name) {
62 return scoped_refptr<RulesRegistry>();
63 }
64
65 WebRequestEventRouterDelegate* 58 WebRequestEventRouterDelegate*
66 ExtensionsAPIClient::CreateWebRequestEventRouterDelegate() const { 59 ExtensionsAPIClient::CreateWebRequestEventRouterDelegate() const {
67 return NULL; 60 return NULL;
68 } 61 }
69 62
70 scoped_refptr<ContentRulesRegistry> 63 scoped_refptr<ContentRulesRegistry>
71 ExtensionsAPIClient::CreateContentRulesRegistry( 64 ExtensionsAPIClient::CreateContentRulesRegistry(
72 content::BrowserContext* browser_context, 65 content::BrowserContext* browser_context,
73 RulesCacheDelegate* cache_delegate) const { 66 RulesCacheDelegate* cache_delegate) const {
74 return scoped_refptr<ContentRulesRegistry>(); 67 return scoped_refptr<ContentRulesRegistry>();
75 } 68 }
76 69
77 } // namespace extensions 70 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698