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

Unified Diff: ios/chrome/browser/ntp_suggestions/ios_chrome_ntp_suggestions_service_factory.h

Issue 1438043008: Creating the NTP snippet service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 1 month 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: ios/chrome/browser/ntp_suggestions/ios_chrome_ntp_suggestions_service_factory.h
diff --git a/ios/chrome/browser/enhanced_bookmarks/bookmark_server_cluster_service_factory.h b/ios/chrome/browser/ntp_suggestions/ios_chrome_ntp_suggestions_service_factory.h
similarity index 52%
copy from ios/chrome/browser/enhanced_bookmarks/bookmark_server_cluster_service_factory.h
copy to ios/chrome/browser/ntp_suggestions/ios_chrome_ntp_suggestions_service_factory.h
index bb4652971759c84439f2fe8f6b328b3736624cbb..39ddc55c5f0f13877cbd950170d48720b0404d0d 100644
--- a/ios/chrome/browser/enhanced_bookmarks/bookmark_server_cluster_service_factory.h
+++ b/ios/chrome/browser/ntp_suggestions/ios_chrome_ntp_suggestions_service_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 IOS_CHROME_BROWSER_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_CLUSTER_SERVICE_FACTORY_H_
-#define IOS_CHROME_BROWSER_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_CLUSTER_SERVICE_FACTORY_H_
+#ifndef IOS_CHROME_BROWSER_NTP_SUGGESTIONS_IOS_CHROME_NTP_SUGGESTIONS_SERVICE_FACTORY_H_
+#define IOS_CHROME_BROWSER_NTP_SUGGESTIONS_IOS_CHROME_NTP_SUGGESTIONS_SERVICE_FACTORY_H_
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
@@ -18,25 +18,25 @@ namespace ios {
class ChromeBrowserState;
}
-namespace enhanced_bookmarks {
+namespace ntp_suggestions {
+class NTPSuggestionsService;
+} // namespace ntp_suggestions
-class BookmarkServerClusterService;
-
-// A factory to create BookmarkServerClusterService and associate them to
+// A factory to create NTPSuggestionsService and associate them to
// ios::ChromeBrowserState.
-class BookmarkServerClusterServiceFactory
+class IOSChromeNTPSuggestionsServiceFactory
: public BrowserStateKeyedServiceFactory {
public:
- static BookmarkServerClusterServiceFactory* GetInstance();
- static BookmarkServerClusterService* GetForBrowserState(
+ static IOSChromeNTPSuggestionsServiceFactory* GetInstance();
+ static ntp_suggestions::NTPSuggestionsService* GetForBrowserState(
ios::ChromeBrowserState* browser_state);
private:
friend struct base::DefaultSingletonTraits<
- BookmarkServerClusterServiceFactory>;
+ IOSChromeNTPSuggestionsServiceFactory>;
- BookmarkServerClusterServiceFactory();
- ~BookmarkServerClusterServiceFactory() override;
+ IOSChromeNTPSuggestionsServiceFactory();
+ ~IOSChromeNTPSuggestionsServiceFactory() override;
// BrowserStateKeyedServiceFactory implementation.
scoped_ptr<KeyedService> BuildServiceInstanceFor(
@@ -44,9 +44,7 @@ class BookmarkServerClusterServiceFactory
web::BrowserState* GetBrowserStateToUse(
web::BrowserState* context) const override;
- DISALLOW_COPY_AND_ASSIGN(BookmarkServerClusterServiceFactory);
+ DISALLOW_COPY_AND_ASSIGN(IOSChromeNTPSuggestionsServiceFactory);
};
-} // namespace enhanced_bookmarks
-
-#endif // IOS_CHROME_BROWSER_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_CLUSTER_SERVICE_FACTORY_H_
+#endif // IOS_CHROME_BROWSER_NTP_SUGGESTIONS_IOS_CHROME_NTP_SUGGESTIONS_SERVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698