| 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 | 10 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 OVERRIDE; | 60 OVERRIDE; |
| 61 virtual PrefService* GetPrefServiceForContext( | 61 virtual PrefService* GetPrefServiceForContext( |
| 62 content::BrowserContext* context) OVERRIDE; | 62 content::BrowserContext* context) OVERRIDE; |
| 63 virtual void GetEarlyExtensionPrefsObservers( | 63 virtual void GetEarlyExtensionPrefsObservers( |
| 64 content::BrowserContext* context, | 64 content::BrowserContext* context, |
| 65 std::vector<ExtensionPrefsObserver*>* observers) const OVERRIDE; | 65 std::vector<ExtensionPrefsObserver*>* observers) const OVERRIDE; |
| 66 virtual ProcessManagerDelegate* GetProcessManagerDelegate() const OVERRIDE; | 66 virtual ProcessManagerDelegate* GetProcessManagerDelegate() const OVERRIDE; |
| 67 virtual scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate() | 67 virtual scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate() |
| 68 OVERRIDE; | 68 OVERRIDE; |
| 69 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; | 69 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; |
| 70 virtual void PermitExternalProtocolHandler() OVERRIDE; |
| 70 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE; | 71 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE; |
| 71 virtual bool IsRunningInForcedAppMode() OVERRIDE; | 72 virtual bool IsRunningInForcedAppMode() OVERRIDE; |
| 72 virtual ApiActivityMonitor* GetApiActivityMonitor( | 73 virtual ApiActivityMonitor* GetApiActivityMonitor( |
| 73 content::BrowserContext* context) OVERRIDE; | 74 content::BrowserContext* context) OVERRIDE; |
| 74 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE; | 75 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE; |
| 75 virtual void RegisterExtensionFunctions( | 76 virtual void RegisterExtensionFunctions( |
| 76 ExtensionFunctionRegistry* registry) const OVERRIDE; | 77 ExtensionFunctionRegistry* registry) const OVERRIDE; |
| 77 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( | 78 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( |
| 78 content::BrowserContext* context) const OVERRIDE; | 79 content::BrowserContext* context) const OVERRIDE; |
| 79 virtual ComponentExtensionResourceManager* | 80 virtual ComponentExtensionResourceManager* |
| 80 GetComponentExtensionResourceManager() OVERRIDE; | 81 GetComponentExtensionResourceManager() OVERRIDE; |
| 81 virtual net::NetLog* GetNetLog() OVERRIDE; | 82 virtual net::NetLog* GetNetLog() OVERRIDE; |
| 82 | 83 |
| 83 private: | 84 private: |
| 84 content::BrowserContext* main_context_; // Not owned. | 85 content::BrowserContext* main_context_; // Not owned. |
| 85 content::BrowserContext* incognito_context_; // Not owned, defaults to NULL. | 86 content::BrowserContext* incognito_context_; // Not owned, defaults to NULL. |
| 86 | 87 |
| 87 // Not owned, defaults to NULL. | 88 // Not owned, defaults to NULL. |
| 88 ProcessManagerDelegate* process_manager_delegate_; | 89 ProcessManagerDelegate* process_manager_delegate_; |
| 89 | 90 |
| 90 DISALLOW_COPY_AND_ASSIGN(TestExtensionsBrowserClient); | 91 DISALLOW_COPY_AND_ASSIGN(TestExtensionsBrowserClient); |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 } // namespace extensions | 94 } // namespace extensions |
| 94 | 95 |
| 95 #endif // EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ | 96 #endif // EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |