Chromium Code Reviews| 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 APPS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef APPS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ |
| 6 #define APPS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define APPS_SHELL_BROWSER_SHELL_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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 52 OVERRIDE; | 52 OVERRIDE; |
| 53 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; | 53 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; |
| 54 virtual void PermitExternalProtocolHandler() OVERRIDE; | 54 virtual void PermitExternalProtocolHandler() OVERRIDE; |
| 55 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE; | 55 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE; |
| 56 virtual bool IsRunningInForcedAppMode() OVERRIDE; | 56 virtual bool IsRunningInForcedAppMode() OVERRIDE; |
| 57 virtual ApiActivityMonitor* GetApiActivityMonitor( | 57 virtual ApiActivityMonitor* GetApiActivityMonitor( |
| 58 content::BrowserContext* context) OVERRIDE; | 58 content::BrowserContext* context) OVERRIDE; |
| 59 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE; | 59 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE; |
| 60 virtual void RegisterExtensionFunctions( | 60 virtual void RegisterExtensionFunctions( |
| 61 ExtensionFunctionRegistry* registry) const OVERRIDE; | 61 ExtensionFunctionRegistry* registry) const OVERRIDE; |
| 62 virtual void AddExtensionPrefsObservers(content::BrowserContext* context, | |
|
James Cook
2014/04/01 18:45:03
nit: In the interface could you put this next to G
Ken Rockot(use gerrit already)
2014/04/01 21:34:59
Done.
| |
| 63 ExtensionPrefs* prefs) const OVERRIDE; | |
| 62 | 64 |
| 63 private: | 65 private: |
| 64 // The single BrowserContext for app_shell. Not owned. | 66 // The single BrowserContext for app_shell. Not owned. |
| 65 content::BrowserContext* browser_context_; | 67 content::BrowserContext* browser_context_; |
| 66 | 68 |
| 67 // Support for extension APIs. | 69 // Support for extension APIs. |
| 68 scoped_ptr<ExtensionsAPIClient> api_client_; | 70 scoped_ptr<ExtensionsAPIClient> api_client_; |
| 69 | 71 |
| 70 // The PrefService for |browser_context_|. | 72 // The PrefService for |browser_context_|. |
| 71 scoped_ptr<PrefService> prefs_; | 73 scoped_ptr<PrefService> prefs_; |
| 72 | 74 |
| 73 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient); | 75 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient); |
| 74 }; | 76 }; |
| 75 | 77 |
| 76 } // namespace extensions | 78 } // namespace extensions |
| 77 | 79 |
| 78 #endif // APPS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ | 80 #endif // APPS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |