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

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

Issue 10014007: Change 9789001: attempt #3 after fixing the problems with linux Created by Wei Li: https://chromium… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « chrome/browser/history/archived_database.cc ('k') | chrome/browser/history/history.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a page's ending time stamp information.
224 // The page can be identified by the combination of the pointer to
225 // a RenderProcessHost, the page id and the url.
226 //
227 // The given pointer will not be dereferenced, it is only used for
228 // identification purposes, hence it is a void*.
229 void UpdateWithPageEndTime(const void* host,
230 int32 page_id,
231 const GURL& url,
232 base::Time end_ts);
233
223 // Indexing ------------------------------------------------------------------ 234 // Indexing ------------------------------------------------------------------
224 235
225 // Notifies history of the body text of the given recently-visited URL. 236 // 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 237 // If the URL was not visited "recently enough," the history system may
227 // discard it. 238 // discard it.
228 void SetPageContents(const GURL& url, const string16& contents); 239 void SetPageContents(const GURL& url, const string16& contents);
229 240
230 // Querying ------------------------------------------------------------------ 241 // Querying ------------------------------------------------------------------
231 242
232 // Callback class that a client can implement to iterate over URLs. The 243 // Callback class that a client can implement to iterate over URLs. The
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 // True if needs top site migration. 897 // True if needs top site migration.
887 bool needs_top_sites_migration_; 898 bool needs_top_sites_migration_;
888 899
889 // The index used for quick history lookups. 900 // The index used for quick history lookups.
890 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; 901 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_;
891 902
892 DISALLOW_COPY_AND_ASSIGN(HistoryService); 903 DISALLOW_COPY_AND_ASSIGN(HistoryService);
893 }; 904 };
894 905
895 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ 906 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/archived_database.cc ('k') | chrome/browser/history/history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698