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

Unified Diff: chrome/browser/ntp_snippets/offline_page_suggestions_provider_factory.h

Issue 2139293004: [TEMP - DO NOT SUBMIT] OfflinePagesProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@internalspage
Patch Set: Implement OfflinePage conversion Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
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_
+#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_

Powered by Google App Engine
This is Rietveld 408576698