OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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_PREVIEWS_PREVIEWS_SERVICE_FACTORY_H_ | |
6 #define CHROME_BROWSER_PREVIEWS_PREVIEWS_SERVICE_FACTORY_H_ | |
7 | |
8 #include "base/memory/singleton.h" | |
9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" | |
10 | |
11 class Profile; | |
12 | |
13 namespace content { | |
14 class BrowserContext; | |
15 } | |
16 | |
17 class PreviewsService; | |
18 | |
19 class PreviewsServiceFactory : public BrowserContextKeyedServiceFactory { | |
bengr
2016/09/08 00:19:09
Add class comment and comments for public methods.
RyanSturm
2016/09/08 18:34:33
Done.
| |
20 public: | |
21 static PreviewsService* GetForProfile(Profile* profile); | |
22 | |
23 static PreviewsServiceFactory* GetInstance(); | |
24 | |
25 private: | |
26 friend struct base::DefaultSingletonTraits<PreviewsServiceFactory>; | |
27 | |
28 PreviewsServiceFactory(); | |
29 ~PreviewsServiceFactory() override; | |
30 | |
31 // BrowserContextKeyedServiceFactory: | |
32 KeyedService* BuildServiceInstanceFor( | |
33 content::BrowserContext* context) const override; | |
34 }; | |
35 | |
36 #endif // CHROME_BROWSER_PREVIEWS_PREVIEWS_SERVICE_FACTORY_H_ | |
OLD | NEW |