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

Side by Side Diff: components/history/core/browser/history_backend.h

Issue 2961723003: [USS] Implement ApplySyncChanges and OnURLVisited/Modified/Deleted. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_
6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 390
391 virtual bool RemoveVisits(const VisitVector& visits); 391 virtual bool RemoveVisits(const VisitVector& visits);
392 392
393 // Returns the VisitSource associated with each one of the passed visits. 393 // Returns the VisitSource associated with each one of the passed visits.
394 // If there is no entry in the map for a given visit, that means the visit 394 // If there is no entry in the map for a given visit, that means the visit
395 // was SOURCE_BROWSED. Returns false if there is no HistoryDatabase.. 395 // was SOURCE_BROWSED. Returns false if there is no HistoryDatabase..
396 bool GetVisitsSource(const VisitVector& visits, VisitSourceMap* sources); 396 bool GetVisitsSource(const VisitVector& visits, VisitSourceMap* sources);
397 397
398 virtual bool GetURL(const GURL& url, URLRow* url_row); 398 virtual bool GetURL(const GURL& url, URLRow* url_row);
399 399
400 bool GetURLByID(URLID url_id, URLRow* url_row);
401
400 // Returns the syncable service for syncing typed urls. The returned service 402 // Returns the syncable service for syncing typed urls. The returned service
401 // is owned by |this| object. 403 // is owned by |this| object.
402 virtual TypedUrlSyncableService* GetTypedUrlSyncableService() const; 404 virtual TypedUrlSyncableService* GetTypedUrlSyncableService() const;
403 405
404 // Returns the sync bridge for syncing typed urls. The returned service 406 // Returns the sync bridge for syncing typed urls. The returned service
405 // is owned by |this| object. 407 // is owned by |this| object.
406 TypedURLSyncBridge* GetTypedURLSyncBridge() const; 408 TypedURLSyncBridge* GetTypedURLSyncBridge() const;
407 409
408 // Deleting ------------------------------------------------------------------ 410 // Deleting ------------------------------------------------------------------
409 411
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 // it unregisters itself as observer during destruction. 922 // it unregisters itself as observer during destruction.
921 std::unique_ptr<TypedUrlSyncableService> typed_url_syncable_service_; 923 std::unique_ptr<TypedUrlSyncableService> typed_url_syncable_service_;
922 std::unique_ptr<TypedURLSyncBridge> typed_url_sync_bridge_; 924 std::unique_ptr<TypedURLSyncBridge> typed_url_sync_bridge_;
923 925
924 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 926 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
925 }; 927 };
926 928
927 } // namespace history 929 } // namespace history
928 930
929 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ 931 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698