| OLD | NEW |
| 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::QueryRedirectsCallback, | |
| 25 history::RedirectList> | |
| 26 QueryRedirectsRequest; | |
| 27 | |
| 28 typedef CancelableRequest<HistoryService::GetVisibleVisitCountToHostCallback> | 24 typedef CancelableRequest<HistoryService::GetVisibleVisitCountToHostCallback> |
| 29 GetVisibleVisitCountToHostRequest; | 25 GetVisibleVisitCountToHostRequest; |
| 30 | 26 |
| 31 typedef CancelableRequest1<HistoryService::QueryTopURLsAndRedirectsCallback, | 27 typedef CancelableRequest1<HistoryService::QueryTopURLsAndRedirectsCallback, |
| 32 Tuple2<std::vector<GURL>, | 28 Tuple2<std::vector<GURL>, |
| 33 history::RedirectMap> > | 29 history::RedirectMap> > |
| 34 QueryTopURLsAndRedirectsRequest; | 30 QueryTopURLsAndRedirectsRequest; |
| 35 | 31 |
| 36 typedef CancelableRequest1<HistoryService::QueryMostVisitedURLsCallback, | 32 typedef CancelableRequest1<HistoryService::QueryMostVisitedURLsCallback, |
| 37 history::MostVisitedURLList> | 33 history::MostVisitedURLList> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 58 | 54 |
| 59 // The argument here is an input value, which is the task to run on the | 55 // The argument here is an input value, which is the task to run on the |
| 60 // background thread. The callback is used to execute the portion of the task | 56 // background thread. The callback is used to execute the portion of the task |
| 61 // that executes on the main thread. | 57 // that executes on the main thread. |
| 62 typedef CancelableRequest1<base::Closure, scoped_refptr<HistoryDBTask> > | 58 typedef CancelableRequest1<base::Closure, scoped_refptr<HistoryDBTask> > |
| 63 HistoryDBTaskRequest; | 59 HistoryDBTaskRequest; |
| 64 | 60 |
| 65 } // namespace history | 61 } // namespace history |
| 66 | 62 |
| 67 #endif // CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H_ | 63 #endif // CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H_ |
| OLD | NEW |