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 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 Loading... | |
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 const base::Time end_ts); | |
brettw
2012/03/28 17:51:45
You don't need the const here (since you pass by v
Wei Li
2012/03/28 18:53:13
Done.
| |
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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
882 // True if needs top site migration. | 893 // True if needs top site migration. |
883 bool needs_top_sites_migration_; | 894 bool needs_top_sites_migration_; |
884 | 895 |
885 // The index used for quick history lookups. | 896 // The index used for quick history lookups. |
886 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; | 897 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; |
887 | 898 |
888 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 899 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
889 }; | 900 }; |
890 | 901 |
891 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ | 902 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ |
OLD | NEW |