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

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

Issue 9789001: Changes to add duration into history database. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 90d29fc07885e4efd0814fe74bb23674aa07a2db..05a3c626cfead2d35bbe7f9e5e45cda79e5faf44 100644
--- a/chrome/browser/history/history_backend.h
+++ b/chrome/browser/history/history_backend.h
@@ -135,6 +135,11 @@ 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);
+ void UpdatePageInfo(const void* host,
GeorgeY 2012/03/22 00:36:49 The same problem with comments and const void* The
Wei Li 2012/03/22 20:05:38 Done.
+ int32 page_id,
+ const GURL& url,
+ const base::Time end_ts);
+
// Indexing ------------------------------------------------------------------
@@ -391,8 +396,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 +440,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

Powered by Google App Engine
This is Rietveld 408576698