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

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

Issue 596003002: Allow declarative webrequest and webrequest in extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 #ifndef EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 5 #ifndef EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
6 #define EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 6 #define EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // returned WebViewGuestDelegate. 79 // returned WebViewGuestDelegate.
80 virtual WebViewGuestDelegate* CreateWebViewGuestDelegate ( 80 virtual WebViewGuestDelegate* CreateWebViewGuestDelegate (
81 WebViewGuest* web_view_guest) const; 81 WebViewGuest* web_view_guest) const;
82 82
83 // Returns a delegate for some of WebViewPermissionHelper's behavior. The 83 // Returns a delegate for some of WebViewPermissionHelper's behavior. The
84 // caller owns the returned WebViewPermissionHelperDelegate. 84 // caller owns the returned WebViewPermissionHelperDelegate.
85 virtual WebViewPermissionHelperDelegate* 85 virtual WebViewPermissionHelperDelegate*
86 CreateWebViewPermissionHelperDelegate ( 86 CreateWebViewPermissionHelperDelegate (
87 WebViewPermissionHelper* web_view_permission_helper) const; 87 WebViewPermissionHelper* web_view_permission_helper) const;
88 88
89 // TODO(wjmaclean): Remove this as soon as rules_registry_service.* moves to
90 // extensions/browser/api/declarative/.
91 virtual scoped_refptr<RulesRegistry> GetRulesRegistry(
92 content::BrowserContext* browser_context,
93 const RulesRegistry::WebViewKey& webview_key,
94 const std::string& event_name);
95
96 // Creates a delegate for WebRequestEventRouter. 89 // Creates a delegate for WebRequestEventRouter.
97 virtual WebRequestEventRouterDelegate* CreateWebRequestEventRouterDelegate() 90 virtual WebRequestEventRouterDelegate* CreateWebRequestEventRouterDelegate()
98 const; 91 const;
99 92
100 // TODO(wjmaclean): Remove this when (if) ContentRulesRegistry code moves 93 // TODO(wjmaclean): Remove this when (if) ContentRulesRegistry code moves
101 // to extensions/browser/api. 94 // to extensions/browser/api.
102 virtual scoped_refptr<ContentRulesRegistry> CreateContentRulesRegistry( 95 virtual scoped_refptr<ContentRulesRegistry> CreateContentRulesRegistry(
103 content::BrowserContext* browser_context, 96 content::BrowserContext* browser_context,
104 RulesCacheDelegate* cache_delegate) const; 97 RulesCacheDelegate* cache_delegate) const;
105 98
106 // NOTE: If this interface gains too many methods (perhaps more than 20) it 99 // NOTE: If this interface gains too many methods (perhaps more than 20) it
107 // should be split into one interface per API. 100 // should be split into one interface per API.
108 }; 101 };
109 102
110 } // namespace extensions 103 } // namespace extensions
111 104
112 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 105 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/declarative/rules_registry_service.cc ('k') | extensions/browser/api/extensions_api_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698