Chromium Code Reviews| Index: chrome/browser/history/history_backend.h |
| diff --git a/chrome/browser/history/history_backend.h b/chrome/browser/history/history_backend.h |
| index 90d29fc07885e4efd0814fe74bb23674aa07a2db..004617e5bf59ce65801e4a1c951ab101b6c7bbce 100644 |
| --- a/chrome/browser/history/history_backend.h |
| +++ b/chrome/browser/history/history_backend.h |
| @@ -135,6 +135,17 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, |
| void AddPage(scoped_refptr<HistoryAddPageArgs> request); |
| virtual void SetPageTitle(const GURL& url, const string16& title); |
| void AddPageNoVisitForBookmark(const GURL& url); |
|
GeorgeY
2012/03/27 21:15:57
nit: please insert an empty line before the commen
Wei Li
2012/03/27 23:01:50
Done.
|
| + // Updates a page with its ending time stamp information at the backend. |
| + // The page can be identified by the combination of the pointer to |
| + // a RenderProcessHost, the page id and the url. |
| + // |
| + // The given pointer will not be dereferenced, it is only used for |
| + // identification purposes, hence it is a void*. |
| + void UpdatePageInfo(const void* host, |
| + int32 page_id, |
| + const GURL& url, |
| + const base::Time end_ts); |
| + |
| // Indexing ------------------------------------------------------------------ |
| @@ -391,8 +402,8 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, |
| FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, GetFaviconForURL); |
| FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, |
| CloneFaviconIsRestrictedToSameDomain); |
| - FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, |
| - QueryFilteredURLs); |
| + FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, QueryFilteredURLs); |
| + FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, UpdateVisitDetails); |
| friend class ::TestingProfile; |
| @@ -435,6 +446,9 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, |
| void GetRedirectsToSpecificVisit( |
| VisitID cur_visit, history::RedirectList* redirects); |
| + // Update the visit details information. |
| + void UpdateVisitDetails(VisitID visit_id, const base::Time end_ts); |
| + |
| // Thumbnail Helpers --------------------------------------------------------- |
| // When a simple GetMostRecentRedirectsFrom() fails, this method is |