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

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: Rename the delegate to WebRequestEventRouterDelegate. Created 6 years, 3 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 13 matching lines...) Expand all
24 namespace extensions { 24 namespace extensions {
25 25
26 class AppViewGuestDelegate; 26 class AppViewGuestDelegate;
27 class ExtensionOptionsGuestDelegate; 27 class ExtensionOptionsGuestDelegate;
28 class MimeHandlerViewGuest; 28 class MimeHandlerViewGuest;
29 class MimeHandlerViewGuestDelegate; 29 class MimeHandlerViewGuestDelegate;
30 class WebViewGuest; 30 class WebViewGuest;
31 class WebViewGuestDelegate; 31 class WebViewGuestDelegate;
32 class WebViewPermissionHelper; 32 class WebViewPermissionHelper;
33 class WebViewPermissionHelperDelegate; 33 class WebViewPermissionHelperDelegate;
34 class WebRequestEventRouterDelegate;
34 class SettingsObserver; 35 class SettingsObserver;
35 class SettingsStorageFactory; 36 class SettingsStorageFactory;
36 class ValueStoreCache; 37 class ValueStoreCache;
37 38
38 // Allows the embedder of the extensions module to customize its support for 39 // Allows the embedder of the extensions module to customize its support for
39 // API features. The embedder must create a single instance in the browser 40 // API features. The embedder must create a single instance in the browser
40 // process. Provides a default implementation that does nothing. 41 // process. Provides a default implementation that does nothing.
41 class ExtensionsAPIClient { 42 class ExtensionsAPIClient {
42 public: 43 public:
43 // Construction sets the single instance. 44 // Construction sets the single instance.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 CreateWebViewPermissionHelperDelegate ( 83 CreateWebViewPermissionHelperDelegate (
83 WebViewPermissionHelper* web_view_permission_helper) const; 84 WebViewPermissionHelper* web_view_permission_helper) const;
84 85
85 // TODO(wjmaclean): Remove this as soon as rules_registry_service.* moves to 86 // TODO(wjmaclean): Remove this as soon as rules_registry_service.* moves to
86 // extensions/browser/api/declarative/. 87 // extensions/browser/api/declarative/.
87 virtual scoped_refptr<RulesRegistry> GetRulesRegistry( 88 virtual scoped_refptr<RulesRegistry> GetRulesRegistry(
88 content::BrowserContext* browser_context, 89 content::BrowserContext* browser_context,
89 const RulesRegistry::WebViewKey& webview_key, 90 const RulesRegistry::WebViewKey& webview_key,
90 const std::string& event_name); 91 const std::string& event_name);
91 92
93 // Creates a delegate for WebRequestEventRouter.
94 virtual WebRequestEventRouterDelegate* CreateWebRequestEventRouterDelegate()
95 const;
96
92 // NOTE: If this interface gains too many methods (perhaps more than 20) it 97 // NOTE: If this interface gains too many methods (perhaps more than 20) it
93 // should be split into one interface per API. 98 // should be split into one interface per API.
94 }; 99 };
95 100
96 } // namespace extensions 101 } // namespace extensions
97 102
98 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 103 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698