OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_FACTORY_H_ |
6 #define CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_FACTORY_H_ | 6 #define CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_FACTORY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 public: | 27 public: |
28 static NTPSnippetsServiceFactory* GetInstance(); | 28 static NTPSnippetsServiceFactory* GetInstance(); |
29 static ntp_snippets::NTPSnippetsService* GetForProfile(Profile* profile); | 29 static ntp_snippets::NTPSnippetsService* GetForProfile(Profile* profile); |
30 | 30 |
31 private: | 31 private: |
32 friend struct base::DefaultSingletonTraits<NTPSnippetsServiceFactory>; | 32 friend struct base::DefaultSingletonTraits<NTPSnippetsServiceFactory>; |
33 | 33 |
34 NTPSnippetsServiceFactory(); | 34 NTPSnippetsServiceFactory(); |
35 ~NTPSnippetsServiceFactory() override; | 35 ~NTPSnippetsServiceFactory() override; |
36 | 36 |
37 // BrowserStateKeyedServiceFactory implementation. | 37 // BrowserContextKeyedServiceFactory implementation. |
38 KeyedService* BuildServiceInstanceFor( | 38 KeyedService* BuildServiceInstanceFor( |
39 content::BrowserContext* context) const override; | 39 content::BrowserContext* context) const override; |
40 | 40 |
41 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsServiceFactory); | 41 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsServiceFactory); |
42 }; | 42 }; |
43 | 43 |
44 #endif // CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_FACTORY_H_ | 44 #endif // CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_FACTORY_H_ |
OLD | NEW |