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

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

Issue 568583002: Introduce WebRequestEventRouterDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits 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
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/api/extensions_api_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 14 matching lines...) Expand all
25 25
26 class AppViewGuestDelegate; 26 class AppViewGuestDelegate;
27 class ExtensionOptionsGuest; 27 class ExtensionOptionsGuest;
28 class ExtensionOptionsGuestDelegate; 28 class ExtensionOptionsGuestDelegate;
29 class MimeHandlerViewGuest; 29 class MimeHandlerViewGuest;
30 class MimeHandlerViewGuestDelegate; 30 class MimeHandlerViewGuestDelegate;
31 class WebViewGuest; 31 class WebViewGuest;
32 class WebViewGuestDelegate; 32 class WebViewGuestDelegate;
33 class WebViewPermissionHelper; 33 class WebViewPermissionHelper;
34 class WebViewPermissionHelperDelegate; 34 class WebViewPermissionHelperDelegate;
35 class WebRequestEventRouterDelegate;
35 class SettingsObserver; 36 class SettingsObserver;
36 class SettingsStorageFactory; 37 class SettingsStorageFactory;
37 class ValueStoreCache; 38 class ValueStoreCache;
38 39
39 // Allows the embedder of the extensions module to customize its support for 40 // Allows the embedder of the extensions module to customize its support for
40 // API features. The embedder must create a single instance in the browser 41 // API features. The embedder must create a single instance in the browser
41 // process. Provides a default implementation that does nothing. 42 // process. Provides a default implementation that does nothing.
42 class ExtensionsAPIClient { 43 class ExtensionsAPIClient {
43 public: 44 public:
44 // Construction sets the single instance. 45 // Construction sets the single instance.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 CreateWebViewPermissionHelperDelegate ( 84 CreateWebViewPermissionHelperDelegate (
84 WebViewPermissionHelper* web_view_permission_helper) const; 85 WebViewPermissionHelper* web_view_permission_helper) const;
85 86
86 // TODO(wjmaclean): Remove this as soon as rules_registry_service.* moves to 87 // TODO(wjmaclean): Remove this as soon as rules_registry_service.* moves to
87 // extensions/browser/api/declarative/. 88 // extensions/browser/api/declarative/.
88 virtual scoped_refptr<RulesRegistry> GetRulesRegistry( 89 virtual scoped_refptr<RulesRegistry> GetRulesRegistry(
89 content::BrowserContext* browser_context, 90 content::BrowserContext* browser_context,
90 const RulesRegistry::WebViewKey& webview_key, 91 const RulesRegistry::WebViewKey& webview_key,
91 const std::string& event_name); 92 const std::string& event_name);
92 93
94 // Creates a delegate for WebRequestEventRouter.
95 virtual WebRequestEventRouterDelegate* CreateWebRequestEventRouterDelegate()
96 const;
97
93 // NOTE: If this interface gains too many methods (perhaps more than 20) it 98 // NOTE: If this interface gains too many methods (perhaps more than 20) it
94 // should be split into one interface per API. 99 // should be split into one interface per API.
95 }; 100 };
96 101
97 } // namespace extensions 102 } // namespace extensions
98 103
99 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 104 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/api/extensions_api_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698