OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
205 | 205 |
206 // For adding pages to history where no tracking information can be done. | 206 // For adding pages to history where no tracking information can be done. |
207 void AddPage(const GURL& url, history::VisitSource visit_source) { | 207 void AddPage(const GURL& url, history::VisitSource visit_source) { |
208 AddPage(url, NULL, 0, GURL(), PageTransition::LINK, | 208 AddPage(url, NULL, 0, GURL(), PageTransition::LINK, |
209 history::RedirectList(), visit_source, false); | 209 history::RedirectList(), visit_source, false); |
210 } | 210 } |
211 | 211 |
212 // All AddPage variants end up here. | 212 // All AddPage variants end up here. |
213 void AddPage(const history::HistoryAddPageArgs& add_page_args); | 213 void AddPage(const history::HistoryAddPageArgs& add_page_args); |
214 | 214 |
215 // Adds an entry for the specified url without creating a visit. Typically | |
216 // you'll use one of the AddPage variants. This should only be used in cases | |
217 // where you want to force adding an entry with no visits. | |
218 void AddPageNoVisit(const GURL& url); | |
brettw
2010/12/15 17:32:47
Maybe we should call this AddPageNoVisitForBookmar
sky
2010/12/15 18:00:46
Done.
| |
219 | |
215 // Sets the title for the given page. The page should be in history. If it | 220 // Sets the title for the given page. The page should be in history. If it |
216 // is not, this operation is ignored. This call will not update the full | 221 // is not, this operation is ignored. This call will not update the full |
217 // text index. The last title set when the page is indexed will be the | 222 // text index. The last title set when the page is indexed will be the |
218 // title in the full text index. | 223 // title in the full text index. |
219 void SetPageTitle(const GURL& url, const string16& title); | 224 void SetPageTitle(const GURL& url, const string16& title); |
220 | 225 |
221 // Indexing ------------------------------------------------------------------ | 226 // Indexing ------------------------------------------------------------------ |
222 | 227 |
223 // Notifies history of the body text of the given recently-visited URL. | 228 // Notifies history of the body text of the given recently-visited URL. |
224 // If the URL was not visited "recently enough," the history system may | 229 // If the URL was not visited "recently enough," the history system may |
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
856 BookmarkService* bookmark_service_; | 861 BookmarkService* bookmark_service_; |
857 bool no_db_; | 862 bool no_db_; |
858 | 863 |
859 // True if needs top site migration. | 864 // True if needs top site migration. |
860 bool needs_top_sites_migration_; | 865 bool needs_top_sites_migration_; |
861 | 866 |
862 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 867 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
863 }; | 868 }; |
864 | 869 |
865 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ | 870 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ |
OLD | NEW |