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

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

Issue 16951015: Remove TextDatabase from the history service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replace_fts
Patch Set: Remove QueryOptions.body_only Created 7 years, 6 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
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_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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // The page can be identified by the combination of the pointer to 228 // The page can be identified by the combination of the pointer to
229 // a RenderProcessHost, the page id and the url. 229 // a RenderProcessHost, the page id and the url.
230 // 230 //
231 // The given pointer will not be dereferenced, it is only used for 231 // The given pointer will not be dereferenced, it is only used for
232 // identification purposes, hence it is a void*. 232 // identification purposes, hence it is a void*.
233 void UpdateWithPageEndTime(const void* host, 233 void UpdateWithPageEndTime(const void* host,
234 int32 page_id, 234 int32 page_id,
235 const GURL& url, 235 const GURL& url,
236 base::Time end_ts); 236 base::Time end_ts);
237 237
238 // Indexing ------------------------------------------------------------------
239
240 // Notifies history of the body text of the given recently-visited URL.
241 // If the URL was not visited "recently enough," the history system may
242 // discard it.
243 void SetPageContents(const GURL& url, const string16& contents);
244
245 // Querying ------------------------------------------------------------------ 238 // Querying ------------------------------------------------------------------
246 239
247 // Returns the information about the requested URL. If the URL is found, 240 // Returns the information about the requested URL. If the URL is found,
248 // success will be true and the information will be in the URLRow parameter. 241 // success will be true and the information will be in the URLRow parameter.
249 // On success, the visits, if requested, will be sorted by date. If they have 242 // On success, the visits, if requested, will be sorted by date. If they have
250 // not been requested, the pointer will be valid, but the vector will be 243 // not been requested, the pointer will be valid, but the vector will be
251 // empty. 244 // empty.
252 // 245 //
253 // If success is false, neither the row nor the vector will be valid. 246 // If success is false, neither the row nor the vector will be valid.
254 typedef base::Callback<void( 247 typedef base::Callback<void(
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; 1085 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_;
1093 1086
1094 ObserverList<history::VisitDatabaseObserver> visit_database_observers_; 1087 ObserverList<history::VisitDatabaseObserver> visit_database_observers_;
1095 1088
1096 history::DeleteDirectiveHandler delete_directive_handler_; 1089 history::DeleteDirectiveHandler delete_directive_handler_;
1097 1090
1098 DISALLOW_COPY_AND_ASSIGN(HistoryService); 1091 DISALLOW_COPY_AND_ASSIGN(HistoryService);
1099 }; 1092 };
1100 1093
1101 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ 1094 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698