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_SHELL_BROWSER_SHELL_APPS_CLIENT_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_APPS_CLIENT_H_ |
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APPS_CLIENT_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APPS_CLIENT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "extensions/browser/app_window/apps_client.h" | 10 #include "extensions/browser/app_window/apps_client.h" |
11 | 11 |
12 namespace extensions { | 12 namespace extensions { |
13 | 13 |
14 // app_shell's AppsClient implementation. | 14 // app_shell's AppsClient implementation. |
15 class ShellAppsClient : public AppsClient { | 15 class ShellAppsClient : public AppsClient { |
16 public: | 16 public: |
17 ShellAppsClient(); | 17 ShellAppsClient(); |
18 virtual ~ShellAppsClient(); | 18 virtual ~ShellAppsClient(); |
19 | 19 |
20 // AppsClient overrides: | 20 // AppsClient overrides: |
21 virtual std::vector<content::BrowserContext*> GetLoadedBrowserContexts() | |
22 OVERRIDE; | |
23 virtual AppWindow* CreateAppWindow(content::BrowserContext* context, | 21 virtual AppWindow* CreateAppWindow(content::BrowserContext* context, |
24 const Extension* extension) OVERRIDE; | 22 const Extension* extension) OVERRIDE; |
25 virtual NativeAppWindow* CreateNativeAppWindow( | 23 virtual NativeAppWindow* CreateNativeAppWindow( |
26 AppWindow* window, | 24 AppWindow* window, |
27 const AppWindow::CreateParams& params) OVERRIDE; | 25 const AppWindow::CreateParams& params) OVERRIDE; |
28 virtual void IncrementKeepAliveCount() OVERRIDE; | 26 virtual void IncrementKeepAliveCount() OVERRIDE; |
29 virtual void DecrementKeepAliveCount() OVERRIDE; | 27 virtual void DecrementKeepAliveCount() OVERRIDE; |
30 virtual void OpenDevToolsWindow(content::WebContents* web_contents, | 28 virtual void OpenDevToolsWindow(content::WebContents* web_contents, |
31 const base::Closure& callback) OVERRIDE; | 29 const base::Closure& callback) OVERRIDE; |
32 virtual bool IsCurrentChannelOlderThanDev() OVERRIDE; | 30 virtual bool IsCurrentChannelOlderThanDev() OVERRIDE; |
33 | 31 |
34 private: | 32 private: |
35 DISALLOW_COPY_AND_ASSIGN(ShellAppsClient); | 33 DISALLOW_COPY_AND_ASSIGN(ShellAppsClient); |
36 }; | 34 }; |
37 | 35 |
38 } // namespace extensions | 36 } // namespace extensions |
39 | 37 |
40 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APPS_CLIENT_H_ | 38 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APPS_CLIENT_H_ |
OLD | NEW |