| 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 <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 std::unique_ptr<base::ListValue> args) override; | 106 std::unique_ptr<base::ListValue> args) override; |
| 107 net::NetLog* GetNetLog() override; | 107 net::NetLog* GetNetLog() override; |
| 108 ExtensionCache* GetExtensionCache() override; | 108 ExtensionCache* GetExtensionCache() override; |
| 109 bool IsBackgroundUpdateAllowed() override; | 109 bool IsBackgroundUpdateAllowed() override; |
| 110 bool IsMinBrowserVersionSupported(const std::string& min_version) override; | 110 bool IsMinBrowserVersionSupported(const std::string& min_version) override; |
| 111 ExtensionWebContentsObserver* GetExtensionWebContentsObserver( | 111 ExtensionWebContentsObserver* GetExtensionWebContentsObserver( |
| 112 content::WebContents* web_contents) override; | 112 content::WebContents* web_contents) override; |
| 113 KioskDelegate* GetKioskDelegate() override; | 113 KioskDelegate* GetKioskDelegate() override; |
| 114 scoped_refptr<update_client::UpdateClient> CreateUpdateClient( | 114 scoped_refptr<update_client::UpdateClient> CreateUpdateClient( |
| 115 content::BrowserContext* context) override; | 115 content::BrowserContext* context) override; |
| 116 bool IsLockScreenContext(content::BrowserContext* context) override; |
| 116 | 117 |
| 117 ExtensionSystemProvider* extension_system_factory() { | 118 ExtensionSystemProvider* extension_system_factory() { |
| 118 return extension_system_factory_; | 119 return extension_system_factory_; |
| 119 } | 120 } |
| 120 | 121 |
| 121 private: | 122 private: |
| 122 content::BrowserContext* main_context_; // Not owned. | 123 content::BrowserContext* main_context_; // Not owned. |
| 123 content::BrowserContext* incognito_context_; // Not owned, defaults to NULL. | 124 content::BrowserContext* incognito_context_; // Not owned, defaults to NULL. |
| 124 | 125 |
| 125 // Not owned, defaults to NULL. | 126 // Not owned, defaults to NULL. |
| 126 ProcessManagerDelegate* process_manager_delegate_; | 127 ProcessManagerDelegate* process_manager_delegate_; |
| 127 | 128 |
| 128 // Not owned, defaults to NULL. | 129 // Not owned, defaults to NULL. |
| 129 ExtensionSystemProvider* extension_system_factory_; | 130 ExtensionSystemProvider* extension_system_factory_; |
| 130 | 131 |
| 131 std::unique_ptr<ExtensionCache> extension_cache_; | 132 std::unique_ptr<ExtensionCache> extension_cache_; |
| 132 | 133 |
| 133 base::Callback<update_client::UpdateClient*(void)> update_client_factory_; | 134 base::Callback<update_client::UpdateClient*(void)> update_client_factory_; |
| 134 | 135 |
| 135 DISALLOW_COPY_AND_ASSIGN(TestExtensionsBrowserClient); | 136 DISALLOW_COPY_AND_ASSIGN(TestExtensionsBrowserClient); |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 } // namespace extensions | 139 } // namespace extensions |
| 139 | 140 |
| 140 #endif // EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ | 141 #endif // EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |