Chromium Code Reviews| 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 void UpdatePageInfo(const void* host, | |
|
GeorgeY
2012/03/22 00:36:49
Add comments, please,
and why do you use void* he
Wei Li
2012/03/22 20:05:38
Done.
| |
| 224 int32 page_id, | |
| 225 const GURL& url, | |
| 226 const base::Time ts); | |
| 227 | |
| 223 // Indexing ------------------------------------------------------------------ | 228 // Indexing ------------------------------------------------------------------ |
| 224 | 229 |
| 225 // Notifies history of the body text of the given recently-visited URL. | 230 // 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 | 231 // If the URL was not visited "recently enough," the history system may |
| 227 // discard it. | 232 // discard it. |
| 228 void SetPageContents(const GURL& url, const string16& contents); | 233 void SetPageContents(const GURL& url, const string16& contents); |
| 229 | 234 |
| 230 // Querying ------------------------------------------------------------------ | 235 // Querying ------------------------------------------------------------------ |
| 231 | 236 |
| 232 // Callback class that a client can implement to iterate over URLs. The | 237 // 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. | 887 // True if needs top site migration. |
| 883 bool needs_top_sites_migration_; | 888 bool needs_top_sites_migration_; |
| 884 | 889 |
| 885 // The index used for quick history lookups. | 890 // The index used for quick history lookups. |
| 886 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; | 891 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; |
| 887 | 892 |
| 888 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 893 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
| 889 }; | 894 }; |
| 890 | 895 |
| 891 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ | 896 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ |
| OLD | NEW |