| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual void GetEarlyExtensionPrefsObservers( | 73 virtual void GetEarlyExtensionPrefsObservers( |
| 74 content::BrowserContext* context, | 74 content::BrowserContext* context, |
| 75 std::vector<ExtensionPrefsObserver*>* observers) const OVERRIDE; | 75 std::vector<ExtensionPrefsObserver*>* observers) const OVERRIDE; |
| 76 virtual bool DeferLoadingBackgroundHosts( | 76 virtual bool DeferLoadingBackgroundHosts( |
| 77 content::BrowserContext* context) const OVERRIDE; | 77 content::BrowserContext* context) const OVERRIDE; |
| 78 virtual bool IsBackgroundPageAllowed( | 78 virtual bool IsBackgroundPageAllowed( |
| 79 content::BrowserContext* context) const OVERRIDE; | 79 content::BrowserContext* context) const OVERRIDE; |
| 80 virtual scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate() | 80 virtual scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate() |
| 81 OVERRIDE; | 81 OVERRIDE; |
| 82 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; | 82 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; |
| 83 virtual void PermitExternalProtocolHandler() OVERRIDE; |
| 83 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE; | 84 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE; |
| 84 virtual bool IsRunningInForcedAppMode() OVERRIDE; | 85 virtual bool IsRunningInForcedAppMode() OVERRIDE; |
| 85 virtual ApiActivityMonitor* GetApiActivityMonitor( | 86 virtual ApiActivityMonitor* GetApiActivityMonitor( |
| 86 content::BrowserContext* context) OVERRIDE; | 87 content::BrowserContext* context) OVERRIDE; |
| 87 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE; | 88 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE; |
| 88 virtual void RegisterExtensionFunctions( | 89 virtual void RegisterExtensionFunctions( |
| 89 ExtensionFunctionRegistry* registry) const OVERRIDE; | 90 ExtensionFunctionRegistry* registry) const OVERRIDE; |
| 90 virtual scoped_ptr<extensions::RuntimeAPIDelegate> CreateRuntimeAPIDelegate( | 91 virtual scoped_ptr<extensions::RuntimeAPIDelegate> CreateRuntimeAPIDelegate( |
| 91 content::BrowserContext* context) const OVERRIDE; | 92 content::BrowserContext* context) const OVERRIDE; |
| 92 | 93 |
| 93 private: | 94 private: |
| 94 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; | 95 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; |
| 95 | 96 |
| 96 // Observer for Chrome-specific notifications. | 97 // Observer for Chrome-specific notifications. |
| 97 ChromeNotificationObserver notification_observer_; | 98 ChromeNotificationObserver notification_observer_; |
| 98 | 99 |
| 99 #if defined(ENABLE_EXTENSIONS) | 100 #if defined(ENABLE_EXTENSIONS) |
| 100 // Client for API implementations. | 101 // Client for API implementations. |
| 101 scoped_ptr<ChromeExtensionsAPIClient> api_client_; | 102 scoped_ptr<ChromeExtensionsAPIClient> api_client_; |
| 102 #endif | 103 #endif |
| 103 | 104 |
| 104 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); | 105 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } // namespace extensions | 108 } // namespace extensions |
| 108 | 109 |
| 109 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 110 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |