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

Unified Diff: chrome/browser/history/history_backend.h

Issue 12703036: [Sync] Add interface and backend impl for typed URL syncable service (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix style and move logic into BroadcastNotifications Created 7 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/history/history_backend.cc » ('j') | chrome/browser/history/history_backend.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_backend.h
diff --git a/chrome/browser/history/history_backend.h b/chrome/browser/history/history_backend.h
index e5a75304954be88026e5489780fc87fe554f08dd..68765daaa64c275f7f92a1c6bba4154276c4fef2 100644
--- a/chrome/browser/history/history_backend.h
+++ b/chrome/browser/history/history_backend.h
@@ -28,6 +28,7 @@
class BookmarkService;
class TestingProfile;
+class TypedUrlSyncableService;
struct ThumbnailScore;
namespace history {
@@ -429,6 +430,10 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>,
virtual bool GetURL(const GURL& url, history::URLRow* url_row);
+ // Returns the syncable service for syncing typed urls. The returned service
+ // is owned by |this| object.
+ virtual TypedUrlSyncableService* GetTypedUrlSyncableService() const;
+
// Deleting ------------------------------------------------------------------
virtual void DeleteURLs(const std::vector<GURL>& urls);
@@ -895,6 +900,9 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>,
scoped_ptr<AndroidProviderBackend> android_provider_backend_;
#endif
+ // Used to sync typed urls
+ scoped_ptr<TypedUrlSyncableService> typed_url_syncable_service_;
+
DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
};
« no previous file with comments | « no previous file | chrome/browser/history/history_backend.cc » ('j') | chrome/browser/history/history_backend.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698