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