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

Unified Diff: trunk/src/chrome/browser/history/history_service.cc

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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/chrome/browser/history/history_service.cc
===================================================================
--- trunk/src/chrome/browser/history/history_service.cc (revision 212472)
+++ trunk/src/chrome/browser/history/history_service.cc (working copy)
@@ -14,6 +14,10 @@
// -> SQLite connection to History
// -> ArchivedDatabase
// -> SQLite connection to Archived History
+// -> TextDatabaseManager
+// -> SQLite connection to one month's data
+// -> SQLite connection to one month's data
+// ...
// -> ThumbnailDatabase
// -> SQLite connection to Thumbnails
// (and favicons)
@@ -593,6 +597,16 @@
&HistoryBackend::AddPagesWithDetails, info, visit_source);
}
+void HistoryService::SetPageContents(const GURL& url,
+ const string16& contents) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ if (!CanAddURL(url))
+ return;
+
+ ScheduleAndForget(PRIORITY_LOW, &HistoryBackend::SetPageContents,
+ url, contents);
+}
+
HistoryService::Handle HistoryService::GetPageThumbnail(
const GURL& page_url,
CancelableRequestConsumerBase* consumer,
« no previous file with comments | « trunk/src/chrome/browser/history/history_service.h ('k') | trunk/src/chrome/browser/history/history_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698