| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 85 void RegisterMojoServices(content::RenderFrameHost* render_frame_host, |
| 86 const Extension* extension) const override; | 86 const Extension* extension) const override; |
| 87 scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( | 87 scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( |
| 88 content::BrowserContext* context) const override; | 88 content::BrowserContext* context) const override; |
| 89 const ComponentExtensionResourceManager* | 89 const ComponentExtensionResourceManager* |
| 90 GetComponentExtensionResourceManager() override; | 90 GetComponentExtensionResourceManager() override; |
| 91 void BroadcastEventToRenderers(const std::string& event_name, | 91 void BroadcastEventToRenderers(events::HistogramValue histogram_value, |
| 92 const std::string& event_name, |
| 92 scoped_ptr<base::ListValue> args) override; | 93 scoped_ptr<base::ListValue> args) override; |
| 93 net::NetLog* GetNetLog() override; | 94 net::NetLog* GetNetLog() override; |
| 94 ExtensionCache* GetExtensionCache() override; | 95 ExtensionCache* GetExtensionCache() override; |
| 95 bool IsBackgroundUpdateAllowed() override; | 96 bool IsBackgroundUpdateAllowed() override; |
| 96 bool IsMinBrowserVersionSupported(const std::string& min_version) override; | 97 bool IsMinBrowserVersionSupported(const std::string& min_version) override; |
| 97 ExtensionWebContentsObserver* GetExtensionWebContentsObserver( | 98 ExtensionWebContentsObserver* GetExtensionWebContentsObserver( |
| 98 content::WebContents* web_contents) override; | 99 content::WebContents* web_contents) override; |
| 99 | 100 |
| 100 private: | 101 private: |
| 101 content::BrowserContext* main_context_; // Not owned. | 102 content::BrowserContext* main_context_; // Not owned. |
| 102 content::BrowserContext* incognito_context_; // Not owned, defaults to NULL. | 103 content::BrowserContext* incognito_context_; // Not owned, defaults to NULL. |
| 103 | 104 |
| 104 // Not owned, defaults to NULL. | 105 // Not owned, defaults to NULL. |
| 105 ProcessManagerDelegate* process_manager_delegate_; | 106 ProcessManagerDelegate* process_manager_delegate_; |
| 106 | 107 |
| 107 // Not owned, defaults to NULL. | 108 // Not owned, defaults to NULL. |
| 108 ExtensionSystemProvider* extension_system_factory_; | 109 ExtensionSystemProvider* extension_system_factory_; |
| 109 | 110 |
| 110 scoped_ptr<ExtensionCache> extension_cache_; | 111 scoped_ptr<ExtensionCache> extension_cache_; |
| 111 | 112 |
| 112 DISALLOW_COPY_AND_ASSIGN(TestExtensionsBrowserClient); | 113 DISALLOW_COPY_AND_ASSIGN(TestExtensionsBrowserClient); |
| 113 }; | 114 }; |
| 114 | 115 |
| 115 } // namespace extensions | 116 } // namespace extensions |
| 116 | 117 |
| 117 #endif // EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ | 118 #endif // EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |