OLD | NEW |
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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 | 392 |
393 virtual bool RemoveVisits(const VisitVector& visits); | 393 virtual bool RemoveVisits(const VisitVector& visits); |
394 | 394 |
395 // Returns the VisitSource associated with each one of the passed visits. | 395 // Returns the VisitSource associated with each one of the passed visits. |
396 // If there is no entry in the map for a given visit, that means the visit | 396 // If there is no entry in the map for a given visit, that means the visit |
397 // was SOURCE_BROWSED. Returns false if there is no HistoryDatabase.. | 397 // was SOURCE_BROWSED. Returns false if there is no HistoryDatabase.. |
398 bool GetVisitsSource(const VisitVector& visits, VisitSourceMap* sources); | 398 bool GetVisitsSource(const VisitVector& visits, VisitSourceMap* sources); |
399 | 399 |
400 virtual bool GetURL(const GURL& url, URLRow* url_row); | 400 virtual bool GetURL(const GURL& url, URLRow* url_row); |
401 | 401 |
| 402 bool GetURLByID(URLID url_id, URLRow* url_row); |
| 403 |
402 // Returns the syncable service for syncing typed urls. The returned service | 404 // Returns the syncable service for syncing typed urls. The returned service |
403 // is owned by |this| object. | 405 // is owned by |this| object. |
404 virtual TypedUrlSyncableService* GetTypedUrlSyncableService() const; | 406 virtual TypedUrlSyncableService* GetTypedUrlSyncableService() const; |
405 | 407 |
406 // Returns the sync bridge for syncing typed urls. The returned service | 408 // Returns the sync bridge for syncing typed urls. The returned service |
407 // is owned by |this| object. | 409 // is owned by |this| object. |
408 TypedURLSyncBridge* GetTypedURLSyncBridge() const; | 410 TypedURLSyncBridge* GetTypedURLSyncBridge() const; |
409 | 411 |
410 // Deleting ------------------------------------------------------------------ | 412 // Deleting ------------------------------------------------------------------ |
411 | 413 |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 // it unregisters itself as observer during destruction. | 925 // it unregisters itself as observer during destruction. |
924 std::unique_ptr<TypedUrlSyncableService> typed_url_syncable_service_; | 926 std::unique_ptr<TypedUrlSyncableService> typed_url_syncable_service_; |
925 std::unique_ptr<TypedURLSyncBridge> typed_url_sync_bridge_; | 927 std::unique_ptr<TypedURLSyncBridge> typed_url_sync_bridge_; |
926 | 928 |
927 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 929 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
928 }; | 930 }; |
929 | 931 |
930 } // namespace history | 932 } // namespace history |
931 | 933 |
932 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ | 934 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
OLD | NEW |