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 28 matching lines...) Expand all Loading... |
39 const OVERRIDE; | 39 const OVERRIDE; |
40 virtual bool IsBackgroundPageAllowed(content::BrowserContext* context) | 40 virtual bool IsBackgroundPageAllowed(content::BrowserContext* context) |
41 const OVERRIDE; | 41 const OVERRIDE; |
42 virtual void OnExtensionHostCreated(content::WebContents* web_contents) | 42 virtual void OnExtensionHostCreated(content::WebContents* web_contents) |
43 OVERRIDE; | 43 OVERRIDE; |
44 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; | 44 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; |
45 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE; | 45 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE; |
46 virtual bool IsRunningInForcedAppMode() OVERRIDE; | 46 virtual bool IsRunningInForcedAppMode() OVERRIDE; |
47 virtual content::JavaScriptDialogManager* GetJavaScriptDialogManager() | 47 virtual content::JavaScriptDialogManager* GetJavaScriptDialogManager() |
48 OVERRIDE; | 48 OVERRIDE; |
| 49 virtual ApiActivityMonitor* GetApiActivityMonitor( |
| 50 content::BrowserContext* context) OVERRIDE; |
49 virtual std::vector<BrowserContextKeyedServiceFactory*> | 51 virtual std::vector<BrowserContextKeyedServiceFactory*> |
50 GetExtensionSystemDependencies() OVERRIDE; | 52 GetExtensionSystemDependencies() OVERRIDE; |
51 virtual ExtensionSystem* CreateExtensionSystem( | 53 virtual ExtensionSystem* CreateExtensionSystem( |
52 content::BrowserContext* context) OVERRIDE; | 54 content::BrowserContext* context) OVERRIDE; |
53 | 55 |
54 private: | 56 private: |
55 // The single BrowserContext for app_shell. Not owned. | 57 // The single BrowserContext for app_shell. Not owned. |
56 content::BrowserContext* browser_context_; | 58 content::BrowserContext* browser_context_; |
57 | 59 |
58 // The PrefService for |browser_context_|. | 60 // The PrefService for |browser_context_|. |
59 scoped_ptr<PrefService> prefs_; | 61 scoped_ptr<PrefService> prefs_; |
60 | 62 |
61 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient); | 63 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient); |
62 }; | 64 }; |
63 | 65 |
64 } // namespace extensions | 66 } // namespace extensions |
65 | 67 |
66 #endif // APPS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ | 68 #endif // APPS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |