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

Side by Side Diff: apps/app_load_service_factory.h

Issue 2789253003: Add chrome/browser/apps/BUILD.gn and move Chrome-specific code there (Closed)
Patch Set: rebase Created 3 years, 8 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
« no previous file with comments | « apps/app_load_service.cc ('k') | apps/app_load_service_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_APP_LOAD_SERVICE_FACTORY_H_
6 #define APPS_APP_LOAD_SERVICE_FACTORY_H_
7
8 #include "base/memory/singleton.h"
9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
10
11 namespace content {
12 class BrowserContext;
13 }
14
15 namespace apps {
16
17 class AppLoadService;
18
19 class AppLoadServiceFactory : public BrowserContextKeyedServiceFactory {
20 public:
21 static AppLoadService* GetForBrowserContext(content::BrowserContext* context);
22
23 static AppLoadServiceFactory* GetInstance();
24
25 private:
26 friend struct base::DefaultSingletonTraits<AppLoadServiceFactory>;
27
28 AppLoadServiceFactory();
29 ~AppLoadServiceFactory() override;
30
31 // BrowserContextKeyedServiceFactory:
32 KeyedService* BuildServiceInstanceFor(
33 content::BrowserContext* context) const override;
34 bool ServiceIsCreatedWithBrowserContext() const override;
35 bool ServiceIsNULLWhileTesting() const override;
36 content::BrowserContext* GetBrowserContextToUse(
37 content::BrowserContext* context) const override;
38 };
39
40 } // namespace apps
41
42 #endif // APPS_APP_LOAD_SERVICE_FACTORY_H_
OLDNEW
« no previous file with comments | « apps/app_load_service.cc ('k') | apps/app_load_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698