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

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

Issue 369673009: Change AndroidHistoryProviderService to use CancelableTaskTracker (2/6) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cancelable_task_tracker.2
Patch Set: clang-format Created 6 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
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_BACKEND_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 void DeleteMatchingURLsForKeyword(KeywordID keyword_id, 277 void DeleteMatchingURLsForKeyword(KeywordID keyword_id,
278 const base::string16& term); 278 const base::string16& term);
279 279
280 #if defined(OS_ANDROID) 280 #if defined(OS_ANDROID)
281 // Android Provider --------------------------------------------------------- 281 // Android Provider ---------------------------------------------------------
282 282
283 // History and bookmarks ---------------------------------------------------- 283 // History and bookmarks ----------------------------------------------------
284 void InsertHistoryAndBookmark(scoped_refptr<InsertRequest> request, 284 void InsertHistoryAndBookmark(scoped_refptr<InsertRequest> request,
285 const HistoryAndBookmarkRow& row); 285 const HistoryAndBookmarkRow& row);
286 286
287 void QueryHistoryAndBookmarks( 287 history::AndroidStatement* QueryHistoryAndBookmarks(
288 scoped_refptr<QueryRequest> request,
289 const std::vector<HistoryAndBookmarkRow::ColumnID>& projections, 288 const std::vector<HistoryAndBookmarkRow::ColumnID>& projections,
290 const std::string& selection, 289 const std::string& selection,
291 const std::vector<base::string16>& selection_args, 290 const std::vector<base::string16>& selection_args,
292 const std::string& sort_order); 291 const std::string& sort_order);
293 292
294 void UpdateHistoryAndBookmarks( 293 void UpdateHistoryAndBookmarks(
295 scoped_refptr<UpdateRequest> request, 294 scoped_refptr<UpdateRequest> request,
296 const HistoryAndBookmarkRow& row, 295 const HistoryAndBookmarkRow& row,
297 const std::string& selection, 296 const std::string& selection,
298 const std::vector<base::string16>& selection_args); 297 const std::vector<base::string16>& selection_args);
(...skipping 23 matching lines...) Expand all
322 321
323 void UpdateSearchTerms(scoped_refptr<UpdateRequest> request, 322 void UpdateSearchTerms(scoped_refptr<UpdateRequest> request,
324 const SearchRow& row, 323 const SearchRow& row,
325 const std::string& selection, 324 const std::string& selection,
326 const std::vector<base::string16> selection_args); 325 const std::vector<base::string16> selection_args);
327 326
328 void DeleteSearchTerms(scoped_refptr<DeleteRequest> request, 327 void DeleteSearchTerms(scoped_refptr<DeleteRequest> request,
329 const std::string& selection, 328 const std::string& selection,
330 const std::vector<base::string16> selection_args); 329 const std::vector<base::string16> selection_args);
331 330
332 void QuerySearchTerms(scoped_refptr<QueryRequest> request, 331 history::AndroidStatement* QuerySearchTerms(
Miguel Garcia 2014/07/07 09:51:57 nit: can you document what the methods you are tou
sdefresne 2014/07/16 08:07:24 Done.
333 const std::vector<SearchRow::ColumnID>& projections, 332 const std::vector<SearchRow::ColumnID>& projections,
334 const std::string& selection, 333 const std::string& selection,
335 const std::vector<base::string16>& selection_args, 334 const std::vector<base::string16>& selection_args,
336 const std::string& sort_order); 335 const std::string& sort_order);
337 336
338 #endif // defined(OS_ANDROID) 337 #endif // defined(OS_ANDROID)
339 338
340 // Generic operations -------------------------------------------------------- 339 // Generic operations --------------------------------------------------------
341 340
342 void ProcessDBTask( 341 void ProcessDBTask(
343 scoped_refptr<HistoryDBTask> task, 342 scoped_refptr<HistoryDBTask> task,
344 scoped_refptr<base::SingleThreadTaskRunner> origin_loop, 343 scoped_refptr<base::SingleThreadTaskRunner> origin_loop,
345 const base::CancelableTaskTracker::IsCanceledCallback& is_canceled); 344 const base::CancelableTaskTracker::IsCanceledCallback& is_canceled);
346 345
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 852
854 // Listens for the system being under memory pressure. 853 // Listens for the system being under memory pressure.
855 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; 854 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_;
856 855
857 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 856 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
858 }; 857 };
859 858
860 } // namespace history 859 } // namespace history
861 860
862 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 861 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698