| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 void PermitExternalProtocolHandler() override; | 73 void PermitExternalProtocolHandler() override; |
| 74 scoped_ptr<AppSorting> CreateAppSorting() override; | 74 scoped_ptr<AppSorting> CreateAppSorting() override; |
| 75 bool IsRunningInForcedAppMode() override; | 75 bool IsRunningInForcedAppMode() override; |
| 76 ApiActivityMonitor* GetApiActivityMonitor( | 76 ApiActivityMonitor* GetApiActivityMonitor( |
| 77 content::BrowserContext* context) override; | 77 content::BrowserContext* context) override; |
| 78 ExtensionSystemProvider* GetExtensionSystemFactory() override; | 78 ExtensionSystemProvider* GetExtensionSystemFactory() override; |
| 79 void RegisterExtensionFunctions( | 79 void RegisterExtensionFunctions( |
| 80 ExtensionFunctionRegistry* registry) const override; | 80 ExtensionFunctionRegistry* registry) const override; |
| 81 scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( | 81 scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( |
| 82 content::BrowserContext* context) const override; | 82 content::BrowserContext* context) const override; |
| 83 ComponentExtensionResourceManager* GetComponentExtensionResourceManager() | 83 const ComponentExtensionResourceManager* |
| 84 override; | 84 GetComponentExtensionResourceManager() override; |
| 85 void BroadcastEventToRenderers(const std::string& event_name, | 85 void BroadcastEventToRenderers(const std::string& event_name, |
| 86 scoped_ptr<base::ListValue> args) override; | 86 scoped_ptr<base::ListValue> args) override; |
| 87 net::NetLog* GetNetLog() override; | 87 net::NetLog* GetNetLog() override; |
| 88 ExtensionCache* GetExtensionCache() override; | 88 ExtensionCache* GetExtensionCache() override; |
| 89 bool IsBackgroundUpdateAllowed() override; | 89 bool IsBackgroundUpdateAllowed() override; |
| 90 bool IsMinBrowserVersionSupported(const std::string& min_version) override; | 90 bool IsMinBrowserVersionSupported(const std::string& min_version) override; |
| 91 | 91 |
| 92 private: | 92 private: |
| 93 content::BrowserContext* main_context_; // Not owned. | 93 content::BrowserContext* main_context_; // Not owned. |
| 94 content::BrowserContext* incognito_context_; // Not owned, defaults to NULL. | 94 content::BrowserContext* incognito_context_; // Not owned, defaults to NULL. |
| 95 | 95 |
| 96 // Not owned, defaults to NULL. | 96 // Not owned, defaults to NULL. |
| 97 ProcessManagerDelegate* process_manager_delegate_; | 97 ProcessManagerDelegate* process_manager_delegate_; |
| 98 | 98 |
| 99 // Not owned, defaults to NULL. | 99 // Not owned, defaults to NULL. |
| 100 ExtensionSystemProvider* extension_system_factory_; | 100 ExtensionSystemProvider* extension_system_factory_; |
| 101 | 101 |
| 102 scoped_ptr<ExtensionCache> extension_cache_; | 102 scoped_ptr<ExtensionCache> extension_cache_; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(TestExtensionsBrowserClient); | 104 DISALLOW_COPY_AND_ASSIGN(TestExtensionsBrowserClient); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 } // namespace extensions | 107 } // namespace extensions |
| 108 | 108 |
| 109 #endif // EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ | 109 #endif // EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |