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_TEST_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ |
6 #define EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "extensions/browser/extensions_browser_client.h" | 9 #include "extensions/browser/extensions_browser_client.h" |
10 #include "extensions/browser/updater/extension_cache.h" | 10 #include "extensions/browser/updater/extension_cache.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate() override; | 75 scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate() override; |
76 bool DidVersionUpdate(content::BrowserContext* context) override; | 76 bool DidVersionUpdate(content::BrowserContext* context) override; |
77 void PermitExternalProtocolHandler() override; | 77 void PermitExternalProtocolHandler() override; |
78 scoped_ptr<AppSorting> CreateAppSorting() override; | 78 scoped_ptr<AppSorting> CreateAppSorting() override; |
79 bool IsRunningInForcedAppMode() override; | 79 bool IsRunningInForcedAppMode() override; |
80 ApiActivityMonitor* GetApiActivityMonitor( | 80 ApiActivityMonitor* GetApiActivityMonitor( |
81 content::BrowserContext* context) override; | 81 content::BrowserContext* context) override; |
82 ExtensionSystemProvider* GetExtensionSystemFactory() override; | 82 ExtensionSystemProvider* GetExtensionSystemFactory() override; |
83 void RegisterExtensionFunctions( | 83 void RegisterExtensionFunctions( |
84 ExtensionFunctionRegistry* registry) const override; | 84 ExtensionFunctionRegistry* registry) const override; |
| 85 void RegisterMojoServices(content::RenderFrameHost* render_frame_host, |
| 86 const Extension* extension) const override; |
85 scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( | 87 scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( |
86 content::BrowserContext* context) const override; | 88 content::BrowserContext* context) const override; |
87 const ComponentExtensionResourceManager* | 89 const ComponentExtensionResourceManager* |
88 GetComponentExtensionResourceManager() override; | 90 GetComponentExtensionResourceManager() override; |
89 void BroadcastEventToRenderers(const std::string& event_name, | 91 void BroadcastEventToRenderers(const std::string& event_name, |
90 scoped_ptr<base::ListValue> args) override; | 92 scoped_ptr<base::ListValue> args) override; |
91 net::NetLog* GetNetLog() override; | 93 net::NetLog* GetNetLog() override; |
92 ExtensionCache* GetExtensionCache() override; | 94 ExtensionCache* GetExtensionCache() override; |
93 bool IsBackgroundUpdateAllowed() override; | 95 bool IsBackgroundUpdateAllowed() override; |
94 bool IsMinBrowserVersionSupported(const std::string& min_version) override; | 96 bool IsMinBrowserVersionSupported(const std::string& min_version) override; |
95 | 97 |
96 private: | 98 private: |
97 content::BrowserContext* main_context_; // Not owned. | 99 content::BrowserContext* main_context_; // Not owned. |
98 content::BrowserContext* incognito_context_; // Not owned, defaults to NULL. | 100 content::BrowserContext* incognito_context_; // Not owned, defaults to NULL. |
99 | 101 |
100 // Not owned, defaults to NULL. | 102 // Not owned, defaults to NULL. |
101 ProcessManagerDelegate* process_manager_delegate_; | 103 ProcessManagerDelegate* process_manager_delegate_; |
102 | 104 |
103 // Not owned, defaults to NULL. | 105 // Not owned, defaults to NULL. |
104 ExtensionSystemProvider* extension_system_factory_; | 106 ExtensionSystemProvider* extension_system_factory_; |
105 | 107 |
106 scoped_ptr<ExtensionCache> extension_cache_; | 108 scoped_ptr<ExtensionCache> extension_cache_; |
107 | 109 |
108 DISALLOW_COPY_AND_ASSIGN(TestExtensionsBrowserClient); | 110 DISALLOW_COPY_AND_ASSIGN(TestExtensionsBrowserClient); |
109 }; | 111 }; |
110 | 112 |
111 } // namespace extensions | 113 } // namespace extensions |
112 | 114 |
113 #endif // EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ | 115 #endif // EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |