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_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ |
6 #define CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 // The page can be identified by the combination of the pointer to | 229 // The page can be identified by the combination of the pointer to |
230 // a RenderProcessHost, the page id and the url. | 230 // a RenderProcessHost, the page id and the url. |
231 // | 231 // |
232 // The given pointer will not be dereferenced, it is only used for | 232 // The given pointer will not be dereferenced, it is only used for |
233 // identification purposes, hence it is a void*. | 233 // identification purposes, hence it is a void*. |
234 void UpdateWithPageEndTime(const void* host, | 234 void UpdateWithPageEndTime(const void* host, |
235 int32 page_id, | 235 int32 page_id, |
236 const GURL& url, | 236 const GURL& url, |
237 base::Time end_ts); | 237 base::Time end_ts); |
238 | 238 |
239 // Indexing ------------------------------------------------------------------ | |
240 | |
241 // Notifies history of the body text of the given recently-visited URL. | |
242 // If the URL was not visited "recently enough," the history system may | |
243 // discard it. | |
244 void SetPageContents(const GURL& url, const string16& contents); | |
245 | |
246 // Querying ------------------------------------------------------------------ | 239 // Querying ------------------------------------------------------------------ |
247 | 240 |
248 // Returns the information about the requested URL. If the URL is found, | 241 // Returns the information about the requested URL. If the URL is found, |
249 // success will be true and the information will be in the URLRow parameter. | 242 // success will be true and the information will be in the URLRow parameter. |
250 // On success, the visits, if requested, will be sorted by date. If they have | 243 // On success, the visits, if requested, will be sorted by date. If they have |
251 // not been requested, the pointer will be valid, but the vector will be | 244 // not been requested, the pointer will be valid, but the vector will be |
252 // empty. | 245 // empty. |
253 // | 246 // |
254 // If success is false, neither the row nor the vector will be valid. | 247 // If success is false, neither the row nor the vector will be valid. |
255 typedef base::Callback<void( | 248 typedef base::Callback<void( |
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; | 1087 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; |
1095 | 1088 |
1096 ObserverList<history::VisitDatabaseObserver> visit_database_observers_; | 1089 ObserverList<history::VisitDatabaseObserver> visit_database_observers_; |
1097 | 1090 |
1098 history::DeleteDirectiveHandler delete_directive_handler_; | 1091 history::DeleteDirectiveHandler delete_directive_handler_; |
1099 | 1092 |
1100 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 1093 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
1101 }; | 1094 }; |
1102 | 1095 |
1103 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ | 1096 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ |
OLD | NEW |