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

Side by Side Diff: chrome/browser/history/history.h

Issue 9789001: Changes to add duration into history database. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a column in visits db instead of a new table Created 8 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 unified diff | Download patch | Annotate | Revision Log
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 CHROME_BROWSER_HISTORY_HISTORY_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // only be used when bookmarking a page, otherwise the row leaks in the 213 // only be used when bookmarking a page, otherwise the row leaks in the
214 // history db (it never gets cleaned). 214 // history db (it never gets cleaned).
215 void AddPageNoVisitForBookmark(const GURL& url); 215 void AddPageNoVisitForBookmark(const GURL& url);
216 216
217 // Sets the title for the given page. The page should be in history. If it 217 // Sets the title for the given page. The page should be in history. If it
218 // is not, this operation is ignored. This call will not update the full 218 // is not, this operation is ignored. This call will not update the full
219 // text index. The last title set when the page is indexed will be the 219 // text index. The last title set when the page is indexed will be the
220 // title in the full text index. 220 // title in the full text index.
221 void SetPageTitle(const GURL& url, const string16& title); 221 void SetPageTitle(const GURL& url, const string16& title);
222 222
223 // Updates the history database with more information about a page.
224 // Right now, we only update with a page's ending time stamp information.
225 // The page can be identified by the combination of the pointer to
226 // a RenderProcessHost, the page id and the url.
227 //
228 // The given pointer will not be dereferenced, it is only used for
229 // identification purposes, hence it is a void*.
230 void UpdateDBWithPageInfo(const void* host,
231 int32 page_id,
232 const GURL& url,
233 const base::Time end_ts);
234
223 // Indexing ------------------------------------------------------------------ 235 // Indexing ------------------------------------------------------------------
224 236
225 // Notifies history of the body text of the given recently-visited URL. 237 // Notifies history of the body text of the given recently-visited URL.
226 // If the URL was not visited "recently enough," the history system may 238 // If the URL was not visited "recently enough," the history system may
227 // discard it. 239 // discard it.
228 void SetPageContents(const GURL& url, const string16& contents); 240 void SetPageContents(const GURL& url, const string16& contents);
229 241
230 // Querying ------------------------------------------------------------------ 242 // Querying ------------------------------------------------------------------
231 243
232 // Callback class that a client can implement to iterate over URLs. The 244 // Callback class that a client can implement to iterate over URLs. The
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 // True if needs top site migration. 894 // True if needs top site migration.
883 bool needs_top_sites_migration_; 895 bool needs_top_sites_migration_;
884 896
885 // The index used for quick history lookups. 897 // The index used for quick history lookups.
886 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; 898 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_;
887 899
888 DISALLOW_COPY_AND_ASSIGN(HistoryService); 900 DISALLOW_COPY_AND_ASSIGN(HistoryService);
889 }; 901 };
890 902
891 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ 903 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/history.cc » ('j') | chrome/browser/history/history_tab_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698