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

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

Issue 19637009: Revert 212459 "Remove TextDatabase from the history service." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
239 // Querying ------------------------------------------------------------------ 246 // Querying ------------------------------------------------------------------
240 247
241 // Returns the information about the requested URL. If the URL is found, 248 // Returns the information about the requested URL. If the URL is found,
242 // success will be true and the information will be in the URLRow parameter. 249 // success will be true and the information will be in the URLRow parameter.
243 // On success, the visits, if requested, will be sorted by date. If they have 250 // On success, the visits, if requested, will be sorted by date. If they have
244 // not been requested, the pointer will be valid, but the vector will be 251 // not been requested, the pointer will be valid, but the vector will be
245 // empty. 252 // empty.
246 // 253 //
247 // If success is false, neither the row nor the vector will be valid. 254 // If success is false, neither the row nor the vector will be valid.
248 typedef base::Callback<void( 255 typedef base::Callback<void(
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; 1094 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_;
1088 1095
1089 ObserverList<history::VisitDatabaseObserver> visit_database_observers_; 1096 ObserverList<history::VisitDatabaseObserver> visit_database_observers_;
1090 1097
1091 history::DeleteDirectiveHandler delete_directive_handler_; 1098 history::DeleteDirectiveHandler delete_directive_handler_;
1092 1099
1093 DISALLOW_COPY_AND_ASSIGN(HistoryService); 1100 DISALLOW_COPY_AND_ASSIGN(HistoryService);
1094 }; 1101 };
1095 1102
1096 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ 1103 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_
OLDNEW
« no previous file with comments | « trunk/src/chrome/browser/history/history_database.cc ('k') | trunk/src/chrome/browser/history/history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698