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

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

Issue 23524005: Introduce AppsClient and use it in apps to get the loaded profiles list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile, self nits Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_APPS_CHROME_APPS_CLIENT_H_
6 #define CHROME_BROWSER_APPS_CHROME_APPS_CLIENT_H_
7
8 #include "apps/apps_client.h"
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "base/lazy_instance.h"
tapted 2013/09/04 01:08:35 I think you can forward declare this, with templ
benwells 2013/09/10 16:48:50 Done.
12
13 // The implementation of AppsClient for Chrome.
14 class ChromeAppsClient : public apps::AppsClient {
15 public:
16 ChromeAppsClient();
17 virtual ~ChromeAppsClient();
18
19 // apps::AppsClient
20 virtual std::vector<content::BrowserContext*> GetLoadedBrowserContexts()
tapted 2013/09/04 01:08:35 nit: overrides after newly introduced functions? I
benwells 2013/09/10 16:48:50 Actually it should be private. Moved to private.
21 OVERRIDE;
22
23 // Get the LazyInstance for ChromeAppsClient.
24 static ChromeAppsClient* GetInstance();
25
26 private:
27 friend struct base::DefaultLazyInstanceTraits<ChromeAppsClient>;
28
29 DISALLOW_COPY_AND_ASSIGN(ChromeAppsClient);
30 };
31
32 #endif // CHROME_BROWSER_APPS_CHROME_APPS_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698