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

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

Issue 365133003: Change AndroidHistoryProviderService to use CancelableTaskTracker (4/6) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cancelable_task_tracker.4
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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/containers/mru_cache.h" 13 #include "base/containers/mru_cache.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/memory/memory_pressure_listener.h" 16 #include "base/memory/memory_pressure_listener.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/task/cancelable_task_tracker.h" 18 #include "base/task/cancelable_task_tracker.h"
19 #include "chrome/browser/history/expire_history_backend.h" 19 #include "chrome/browser/history/expire_history_backend.h"
20 #include "chrome/browser/history/history_database.h" 20 #include "chrome/browser/history/history_database.h"
21 #include "chrome/browser/history/history_marshaling.h" 21 #include "chrome/browser/history/history_marshaling.h"
22 #include "chrome/browser/history/history_types.h" 22 #include "chrome/browser/history/history_types.h"
23 #include "chrome/browser/history/thumbnail_database.h" 23 #include "chrome/browser/history/thumbnail_database.h"
24 #include "chrome/browser/history/visit_tracker.h" 24 #include "chrome/browser/history/visit_tracker.h"
25 #include "components/history/core/browser/keyword_id.h" 25 #include "components/history/core/browser/keyword_id.h"
26 #include "sql/init_status.h" 26 #include "sql/init_status.h"
27 27
28 #if defined(OS_ANDROID)
29 #include "chrome/browser/history/android/android_history_types.h"
30 #endif
31
28 class TestingProfile; 32 class TestingProfile;
29 class TypedUrlSyncableService; 33 class TypedUrlSyncableService;
30 struct ThumbnailScore; 34 struct ThumbnailScore;
31 35
32 namespace history { 36 namespace history {
33 #if defined(OS_ANDROID) 37 #if defined(OS_ANDROID)
34 class AndroidProviderBackend; 38 class AndroidProviderBackend;
35 #endif 39 #endif
36 40
37 class CommitLaterTask; 41 class CommitLaterTask;
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 278
275 void DeleteKeywordSearchTermForURL(const GURL& url); 279 void DeleteKeywordSearchTermForURL(const GURL& url);
276 280
277 void DeleteMatchingURLsForKeyword(KeywordID keyword_id, 281 void DeleteMatchingURLsForKeyword(KeywordID keyword_id,
278 const base::string16& term); 282 const base::string16& term);
279 283
280 #if defined(OS_ANDROID) 284 #if defined(OS_ANDROID)
281 // Android Provider --------------------------------------------------------- 285 // Android Provider ---------------------------------------------------------
282 286
283 // History and bookmarks ---------------------------------------------------- 287 // History and bookmarks ----------------------------------------------------
284 void InsertHistoryAndBookmark(scoped_refptr<InsertRequest> request, 288 AndroidURLID InsertHistoryAndBookmark(const HistoryAndBookmarkRow& row);
Miguel Garcia 2014/07/07 09:54:49 please document both methods
sdefresne 2014/07/16 11:51:08 Done.
285 const HistoryAndBookmarkRow& row);
286 289
287 history::AndroidStatement* QueryHistoryAndBookmarks( 290 history::AndroidStatement* QueryHistoryAndBookmarks(
288 const std::vector<HistoryAndBookmarkRow::ColumnID>& projections, 291 const std::vector<HistoryAndBookmarkRow::ColumnID>& projections,
289 const std::string& selection, 292 const std::string& selection,
290 const std::vector<base::string16>& selection_args, 293 const std::vector<base::string16>& selection_args,
291 const std::string& sort_order); 294 const std::string& sort_order);
292 295
293 void UpdateHistoryAndBookmarks( 296 void UpdateHistoryAndBookmarks(
294 scoped_refptr<UpdateRequest> request, 297 scoped_refptr<UpdateRequest> request,
295 const HistoryAndBookmarkRow& row, 298 const HistoryAndBookmarkRow& row,
(...skipping 12 matching lines...) Expand all
308 // Statement ---------------------------------------------------------------- 311 // Statement ----------------------------------------------------------------
309 // Move the statement's current position. 312 // Move the statement's current position.
310 int MoveStatement(history::AndroidStatement* statement, 313 int MoveStatement(history::AndroidStatement* statement,
311 int current_pos, 314 int current_pos,
312 int destination); 315 int destination);
313 316
314 // Close the given statement. The ownership is transfered. 317 // Close the given statement. The ownership is transfered.
315 void CloseStatement(AndroidStatement* statement); 318 void CloseStatement(AndroidStatement* statement);
316 319
317 // Search terms ------------------------------------------------------------- 320 // Search terms -------------------------------------------------------------
318 void InsertSearchTerm(scoped_refptr<InsertRequest> request, 321 SearchTermID InsertSearchTerm(const SearchRow& row);
319 const SearchRow& row);
320 322
321 void UpdateSearchTerms(scoped_refptr<UpdateRequest> request, 323 void UpdateSearchTerms(scoped_refptr<UpdateRequest> request,
322 const SearchRow& row, 324 const SearchRow& row,
323 const std::string& selection, 325 const std::string& selection,
324 const std::vector<base::string16> selection_args); 326 const std::vector<base::string16> selection_args);
325 327
326 void DeleteSearchTerms(scoped_refptr<DeleteRequest> request, 328 void DeleteSearchTerms(scoped_refptr<DeleteRequest> request,
327 const std::string& selection, 329 const std::string& selection,
328 const std::vector<base::string16> selection_args); 330 const std::vector<base::string16> selection_args);
329 331
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 853
852 // Listens for the system being under memory pressure. 854 // Listens for the system being under memory pressure.
853 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; 855 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_;
854 856
855 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 857 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
856 }; 858 };
857 859
858 } // namespace history 860 } // namespace history
859 861
860 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 862 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/android/android_history_provider_service.cc ('k') | chrome/browser/history/history_backend_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698