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

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: Refactor backend change handling and style cleanup 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
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..5b69a27db0e62e82948dedacbcb2c9cda8cae02d 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);
@@ -782,6 +787,10 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>,
virtual void BroadcastNotifications(int type,
HistoryDetails* details_deleted) OVERRIDE;
+ virtual void NotifySyncURLsDeleted(bool all_history,
+ bool archived,
+ URLRows* rows) OVERRIDE;
+
// Deleting all history ------------------------------------------------------
// Deletes all history. This is a special case of deleting that is separated
@@ -895,6 +904,10 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>,
scoped_ptr<AndroidProviderBackend> android_provider_backend_;
#endif
+ // Used to manage syncing of the typed urls datatype. This will be NULL
+ // before Init is called.
+ scoped_ptr<TypedUrlSyncableService> typed_url_syncable_service_;
+
DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
};

Powered by Google App Engine
This is Rietveld 408576698