OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |