Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Side by Side Diff: chrome/browser/ui/apps/chrome_apps_client.h

Issue 586613002: Remove AppsClient::GetLoadedBrowserContexts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 CHROME_BROWSER_UI_APPS_CHROME_APPS_CLIENT_H_ 5 #ifndef CHROME_BROWSER_UI_APPS_CHROME_APPS_CLIENT_H_
6 #define CHROME_BROWSER_UI_APPS_CHROME_APPS_CLIENT_H_ 6 #define CHROME_BROWSER_UI_APPS_CHROME_APPS_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 "extensions/browser/app_window/apps_client.h" 10 #include "extensions/browser/app_window/apps_client.h"
11 11
12 template <typename T> 12 template <typename T>
13 struct DefaultSingletonTraits; 13 struct DefaultSingletonTraits;
14 14
15 // The implementation of AppsClient for Chrome. 15 // The implementation of AppsClient for Chrome.
16 class ChromeAppsClient : public extensions::AppsClient { 16 class ChromeAppsClient : public extensions::AppsClient {
17 public: 17 public:
18 ChromeAppsClient(); 18 ChromeAppsClient();
19 virtual ~ChromeAppsClient(); 19 virtual ~ChromeAppsClient();
20 20
21 // Get the LazyInstance for ChromeAppsClient. 21 // Get the LazyInstance for ChromeAppsClient.
22 static ChromeAppsClient* GetInstance(); 22 static ChromeAppsClient* GetInstance();
23 23
24 private: 24 private:
25 friend struct DefaultSingletonTraits<ChromeAppsClient>; 25 friend struct DefaultSingletonTraits<ChromeAppsClient>;
26 26
27 // extensions::AppsClient 27 // extensions::AppsClient
28 virtual std::vector<content::BrowserContext*> GetLoadedBrowserContexts()
29 OVERRIDE;
30 virtual extensions::AppWindow* CreateAppWindow( 28 virtual extensions::AppWindow* CreateAppWindow(
31 content::BrowserContext* context, 29 content::BrowserContext* context,
32 const extensions::Extension* extension) OVERRIDE; 30 const extensions::Extension* extension) OVERRIDE;
33 virtual extensions::NativeAppWindow* CreateNativeAppWindow( 31 virtual extensions::NativeAppWindow* CreateNativeAppWindow(
34 extensions::AppWindow* window, 32 extensions::AppWindow* window,
35 const extensions::AppWindow::CreateParams& params) OVERRIDE; 33 const extensions::AppWindow::CreateParams& params) OVERRIDE;
36 virtual void IncrementKeepAliveCount() OVERRIDE; 34 virtual void IncrementKeepAliveCount() OVERRIDE;
37 virtual void DecrementKeepAliveCount() OVERRIDE; 35 virtual void DecrementKeepAliveCount() OVERRIDE;
38 virtual void OpenDevToolsWindow(content::WebContents* web_contents, 36 virtual void OpenDevToolsWindow(content::WebContents* web_contents,
39 const base::Closure& callback) OVERRIDE; 37 const base::Closure& callback) OVERRIDE;
40 virtual bool IsCurrentChannelOlderThanDev() OVERRIDE; 38 virtual bool IsCurrentChannelOlderThanDev() OVERRIDE;
41 39
42 // Implemented in platform specific code. 40 // Implemented in platform specific code.
43 static extensions::NativeAppWindow* CreateNativeAppWindowImpl( 41 static extensions::NativeAppWindow* CreateNativeAppWindowImpl(
44 extensions::AppWindow* window, 42 extensions::AppWindow* window,
45 const extensions::AppWindow::CreateParams& params); 43 const extensions::AppWindow::CreateParams& params);
46 44
47 DISALLOW_COPY_AND_ASSIGN(ChromeAppsClient); 45 DISALLOW_COPY_AND_ASSIGN(ChromeAppsClient);
48 }; 46 };
49 47
50 #endif // CHROME_BROWSER_UI_APPS_CHROME_APPS_CLIENT_H_ 48 #endif // CHROME_BROWSER_UI_APPS_CHROME_APPS_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698