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

Unified Diff: chrome/browser/history/history.cc

Issue 10217010: Completed the code path from AndroidProviderService to HistoryBackend. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Init Created 8 years, 8 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: chrome/browser/history/history.cc
diff --git a/chrome/browser/history/history.cc b/chrome/browser/history/history.cc
index a43de7166b844c41c71318e3bca58abcd451fcef..42c0126678e387465712c522abbd204a244e3e3f 100644
--- a/chrome/browser/history/history.cc
+++ b/chrome/browser/history/history.cc
@@ -892,3 +892,97 @@ void HistoryService::OnTopSitesReady() {
ScheduleAndForget(PRIORITY_NORMAL,
&HistoryBackend::MigrateThumbnailsDatabase);
}
+
+#if defined(OS_ANDROID)
+
+void HistoryService::InsertHistoryAndBookmark(
+ AndroidProviderService::InsertRequest* request,
+ const history::HistoryAndBookmarkRow& row) {
+ Schedule(PRIORITY_NORMAL, &HistoryBackend::InsertHistoryAndBookmark, NULL,
+ request, row);
+}
+
+void HistoryService::QueryHistoryAndBookmarks(
+ AndroidProviderService::QueryRequest* request,
+ const std::vector<history::HistoryAndBookmarkRow::ColumnID>& projections,
+ const std::string& selection,
+ const std::vector<string16>& selection_args,
+ const std::string& sort_order) {
+ Schedule(PRIORITY_NORMAL, &HistoryBackend::QueryHistoryAndBookmarks, NULL,
+ request, projections, selection, selection_args, sort_order);
+}
+
+void HistoryService::UpdateHistoryAndBookmarks(
+ AndroidProviderService::UpdateRequest* request,
+ const history::HistoryAndBookmarkRow& row,
+ const std::string& selection,
+ const std::vector<string16>& selection_args) {
+ Schedule(PRIORITY_NORMAL, &HistoryBackend::UpdateHistoryAndBookmarks, NULL,
+ request, row, selection, selection_args);
+}
+
+void HistoryService::DeleteHistoryAndBookmarks(
+ AndroidProviderService::DeleteRequest* request,
+ const std::string& selection,
+ const std::vector<string16>& selection_args) {
+ Schedule(PRIORITY_NORMAL, &HistoryBackend::DeleteHistoryAndBookmarks, NULL,
+ request, selection, selection_args);
+}
+
+void HistoryService::DeleteHistory(
+ AndroidProviderService::DeleteRequest* request,
+ const std::string& selection,
+ const std::vector<string16>& selection_args) {
+ Schedule(PRIORITY_NORMAL, &HistoryBackend::DeleteHistory, NULL, request,
+ selection, selection_args);
+}
+
+void HistoryService::MoveStatement(
+ AndroidProviderService::MoveStatementRequest* request,
+ history::AndroidStatement* statement,
+ int current_pos,
+ int destination) {
+ Schedule(PRIORITY_NORMAL, &HistoryBackend::MoveStatement, NULL, request,
+ statement, current_pos, destination);
+}
+
+void HistoryService::CloseStatement(history::AndroidStatement* statement) {
+ ScheduleAndForget(PRIORITY_NORMAL, &HistoryBackend::CloseStatement,
+ statement);
+}
+
+void HistoryService::InsertSearchTerm(
+ AndroidProviderService::InsertRequest* request,
+ const history::SearchRow& row) {
+ Schedule(PRIORITY_NORMAL, &HistoryBackend::InsertSearchTerm, NULL, request,
+ row);
+}
+
+void HistoryService::UpdateSearchTerms(
+ AndroidProviderService::UpdateRequest* request,
+ const history::SearchRow& row,
+ const std::string& selection,
+ const std::vector<string16>& selection_arg) {
+ Schedule(PRIORITY_NORMAL, &HistoryBackend::UpdateSearchTerms, NULL, request,
+ row, selection, selection_arg);
+}
+
+void HistoryService::DeleteSearchTerms(
+ AndroidProviderService::DeleteRequest* request,
+ const std::string& selection,
+ const std::vector<string16>& selection_arg) {
+ Schedule(PRIORITY_NORMAL, &HistoryBackend::DeleteSearchTerms, NULL, request,
+ selection, selection_arg);
+}
+
+void HistoryService::QuerySearchTerms(
+ AndroidProviderService::QueryRequest* request,
+ const std::vector<history::SearchRow::ColumnID>& projections,
+ const std::string& selection,
+ const std::vector<string16>& selection_args,
+ const std::string& sort_order) {
+ Schedule(PRIORITY_NORMAL, &HistoryBackend::QuerySearchTerms, NULL, request,
+ projections, selection, selection_args, sort_order);
+}
+
+#endif // defined(OS_ANDROID)

Powered by Google App Engine
This is Rietveld 408576698