| 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)
|
|
|