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

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

Issue 351053003: Port HistoryService::QueryFilteredURLs to CancelableRequestTracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 | Annotate | Revision Log
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 // Data structures for communication between the history service on the main 5 // Data structures for communication between the history service on the main
6 // thread and the backend on the history thread. 6 // thread and the backend on the history thread.
7 7
8 #ifndef CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H_ 8 #ifndef CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H_
9 #define CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H_ 9 #define CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H_
10 10
11 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
12 #include "chrome/browser/common/cancelable_request.h" 12 #include "chrome/browser/common/cancelable_request.h"
13 #include "chrome/browser/history/history_service.h" 13 #include "chrome/browser/history/history_service.h"
14 #include "chrome/browser/history/page_usage_data.h" 14 #include "chrome/browser/history/page_usage_data.h"
15 15
16 #if defined(OS_ANDROID) 16 #if defined(OS_ANDROID)
17 #include "chrome/browser/history/history_marshaling_android.h" 17 #include "chrome/browser/history/history_marshaling_android.h"
18 #endif 18 #endif
19 19
20 namespace history { 20 namespace history {
21 21
22 // Querying ------------------------------------------------------------------- 22 // Querying -------------------------------------------------------------------
23 23
24 typedef CancelableRequest1<HistoryService::QueryMostVisitedURLsCallback, 24 typedef CancelableRequest1<HistoryService::QueryMostVisitedURLsCallback,
25 history::MostVisitedURLList> 25 history::MostVisitedURLList>
26 QueryMostVisitedURLsRequest; 26 QueryMostVisitedURLsRequest;
27 27
28 typedef CancelableRequest1<HistoryService::QueryFilteredURLsCallback,
29 history::FilteredURLList>
30 QueryFilteredURLsRequest;
31
32 // Generic operations --------------------------------------------------------- 28 // Generic operations ---------------------------------------------------------
33 29
34 // The argument here is an input value, which is the task to run on the 30 // The argument here is an input value, which is the task to run on the
35 // background thread. The callback is used to execute the portion of the task 31 // background thread. The callback is used to execute the portion of the task
36 // that executes on the main thread. 32 // that executes on the main thread.
37 typedef CancelableRequest1<base::Closure, scoped_refptr<HistoryDBTask> > 33 typedef CancelableRequest1<base::Closure, scoped_refptr<HistoryDBTask> >
38 HistoryDBTaskRequest; 34 HistoryDBTaskRequest;
39 35
40 } // namespace history 36 } // namespace history
41 37
42 #endif // CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H_ 38 #endif // CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/history_backend_unittest.cc ('k') | chrome/browser/history/history_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698