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

Side by Side Diff: apps/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 APPS_COMMON_APPS_CLIENT_H_
tapted 2013/09/04 01:08:35 include guard has '_COMMON_' - maybe from an earli
benwells 2013/09/10 16:48:50 Done.
6 #define APPS_COMMON_APPS_CLIENT_H_
7
8 #include <vector>
9
10 namespace content {
11 class BrowserContext;
12 }
13
14 namespace apps {
15
16 // Sets up global state for the apps system. Should be Set() once in each
17 // process. This should be implemented by the client of the apps system.
18 class AppsClient {
19 public:
20 // Get all loaded browser contexts.
21 virtual std::vector<content::BrowserContext*> GetLoadedBrowserContexts() = 0;
22
23 // Return the apps client.
24 static AppsClient* Get();
25
26 // Initialize the apps system with this apps client.
27 static void Set(AppsClient* client);
28 };
29
30 } // namespace apps
31
32 #endif // APPS_COMMON_APPS_CLIENT_H_
OLDNEW
« no previous file with comments | « apps/apps.gypi ('k') | apps/apps_client.cc » ('j') | apps/apps_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698