Chromium Code Reviews| Index: chrome/browser/ntp_snippets/offline_page_suggestions_provider_factory.h |
| diff --git a/chrome/browser/ntp_snippets/content_suggestions_service_factory.h b/chrome/browser/ntp_snippets/offline_page_suggestions_provider_factory.h |
| similarity index 50% |
| copy from chrome/browser/ntp_snippets/content_suggestions_service_factory.h |
| copy to chrome/browser/ntp_snippets/offline_page_suggestions_provider_factory.h |
| index e09f157f7e513c0d1b13a7b6df56c3e250cd1f56..0f5c90b0573356d1f7c166ec9eae56f240bf3aa2 100644 |
| --- a/chrome/browser/ntp_snippets/content_suggestions_service_factory.h |
| +++ b/chrome/browser/ntp_snippets/offline_page_suggestions_provider_factory.h |
| @@ -2,8 +2,8 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef CHROME_BROWSER_NTP_SNIPPETS_CONTENT_SUGGESTIONS_SERVICE_FACTORY_H_ |
| -#define CHROME_BROWSER_NTP_SNIPPETS_CONTENT_SUGGESTIONS_SERVICE_FACTORY_H_ |
| +#ifndef CHROME_BROWSER_NTP_SNIPPETS_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_FACTORY_H_ |
|
Marc Treib
2016/07/14 12:16:53
Should this be in an offline_pages subfolder, for
Philipp Keck
2016/07/14 13:46:02
Yes. But now it's moving to c/b/a/ntp anyway.
|
| +#define CHROME_BROWSER_NTP_SNIPPETS_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_FACTORY_H_ |
| #include <memory> |
| @@ -19,26 +19,28 @@ struct DefaultSingletonTraits; |
| namespace ntp_snippets { |
| class ContentSuggestionsService; |
| +class OfflinePageSuggestionsProvider; |
| } // namespace ntp_snippets |
| -class ContentSuggestionsServiceFactory |
| +class OfflinePageSuggestionsProviderFactory |
| : public BrowserContextKeyedServiceFactory { |
| public: |
| - static ContentSuggestionsServiceFactory* GetInstance(); |
| - static ntp_snippets::ContentSuggestionsService* GetForProfile( |
| + static OfflinePageSuggestionsProviderFactory* GetInstance(); |
| + static ntp_snippets::OfflinePageSuggestionsProvider* GetForProfile( |
| Profile* profile); |
| private: |
| - friend struct base::DefaultSingletonTraits<ContentSuggestionsServiceFactory>; |
| + friend struct base::DefaultSingletonTraits< |
| + OfflinePageSuggestionsProviderFactory>; |
| - ContentSuggestionsServiceFactory(); |
| - ~ContentSuggestionsServiceFactory() override; |
| + OfflinePageSuggestionsProviderFactory(); |
| + ~OfflinePageSuggestionsProviderFactory() override; |
| // BrowserStateKeyedServiceFactory implementation. |
| KeyedService* BuildServiceInstanceFor( |
| content::BrowserContext* context) const override; |
| - DISALLOW_COPY_AND_ASSIGN(ContentSuggestionsServiceFactory); |
| + DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProviderFactory); |
| }; |
| -#endif // CHROME_BROWSER_NTP_SNIPPETS_CONTENT_SUGGESTIONS_SERVICE_FACTORY_H_ |
| +#endif // CHROME_BROWSER_NTP_SNIPPETS_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_FACTORY_H_ |