OLD | NEW |
---|---|
(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_ | |
OLD | NEW |