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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 content::BrowserContext* context) const OVERRIDE; | 57 content::BrowserContext* context) const OVERRIDE; |
58 virtual PrefService* GetPrefServiceForContext( | 58 virtual PrefService* GetPrefServiceForContext( |
59 content::BrowserContext* context) OVERRIDE; | 59 content::BrowserContext* context) OVERRIDE; |
60 virtual bool DeferLoadingBackgroundHosts( | 60 virtual bool DeferLoadingBackgroundHosts( |
61 content::BrowserContext* context) const OVERRIDE; | 61 content::BrowserContext* context) const OVERRIDE; |
62 virtual bool IsBackgroundPageAllowed( | 62 virtual bool IsBackgroundPageAllowed( |
63 content::BrowserContext* context) const OVERRIDE; | 63 content::BrowserContext* context) const OVERRIDE; |
64 virtual scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate() | 64 virtual scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate() |
65 OVERRIDE; | 65 OVERRIDE; |
66 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; | 66 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; |
67 virtual void PermitExternalProtocolHandler() OVERRIDE; | |
68 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE; | 67 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE; |
69 virtual bool IsRunningInForcedAppMode() OVERRIDE; | 68 virtual bool IsRunningInForcedAppMode() OVERRIDE; |
70 virtual ApiActivityMonitor* GetApiActivityMonitor( | 69 virtual ApiActivityMonitor* GetApiActivityMonitor( |
71 content::BrowserContext* context) OVERRIDE; | 70 content::BrowserContext* context) OVERRIDE; |
72 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE; | 71 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE; |
73 virtual void RegisterExtensionFunctions( | 72 virtual void RegisterExtensionFunctions( |
74 ExtensionFunctionRegistry* registry) const OVERRIDE; | 73 ExtensionFunctionRegistry* registry) const OVERRIDE; |
75 | 74 |
76 private: | 75 private: |
77 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; | 76 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; |
78 | 77 |
79 // Observer for Chrome-specific notifications. | 78 // Observer for Chrome-specific notifications. |
80 ChromeNotificationObserver notification_observer_; | 79 ChromeNotificationObserver notification_observer_; |
81 | 80 |
82 #if defined(ENABLE_EXTENSIONS) | 81 #if defined(ENABLE_EXTENSIONS) |
83 // Client for API implementations. | 82 // Client for API implementations. |
84 scoped_ptr<ChromeExtensionsAPIClient> api_client_; | 83 scoped_ptr<ChromeExtensionsAPIClient> api_client_; |
85 #endif | 84 #endif |
86 | 85 |
87 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); | 86 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); |
88 }; | 87 }; |
89 | 88 |
90 } // namespace extensions | 89 } // namespace extensions |
91 | 90 |
92 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 91 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |