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 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 GetFaviconRequest; | 61 GetFaviconRequest; |
62 | 62 |
63 // Downloads ------------------------------------------------------------------ | 63 // Downloads ------------------------------------------------------------------ |
64 | 64 |
65 typedef CancelableRequest1<HistoryService::DownloadNextIdCallback, | 65 typedef CancelableRequest1<HistoryService::DownloadNextIdCallback, |
66 int/*next_id*/> | 66 int/*next_id*/> |
67 DownloadNextIdRequest; | 67 DownloadNextIdRequest; |
68 | 68 |
69 | 69 |
70 typedef CancelableRequest1<HistoryService::DownloadQueryCallback, | 70 typedef CancelableRequest1<HistoryService::DownloadQueryCallback, |
71 std::vector<content::DownloadPersistentStoreInfo> > | 71 std::vector<DownloadPersistentStoreInfo> > |
72 DownloadQueryRequest; | 72 DownloadQueryRequest; |
73 | 73 |
74 typedef CancelableRequest<HistoryService::DownloadCreateCallback> | 74 typedef CancelableRequest<HistoryService::DownloadCreateCallback> |
75 DownloadCreateRequest; | 75 DownloadCreateRequest; |
76 | 76 |
77 // Segment usage -------------------------------------------------------------- | 77 // Segment usage -------------------------------------------------------------- |
78 | 78 |
79 typedef CancelableRequest1<HistoryService::SegmentQueryCallback, | 79 typedef CancelableRequest1<HistoryService::SegmentQueryCallback, |
80 ScopedVector<PageUsageData> > | 80 ScopedVector<PageUsageData> > |
81 QuerySegmentUsageRequest; | 81 QuerySegmentUsageRequest; |
82 | 82 |
83 // Keyword search terms ------------------------------------------------------- | 83 // Keyword search terms ------------------------------------------------------- |
84 | 84 |
85 typedef | 85 typedef |
86 CancelableRequest1<HistoryService::GetMostRecentKeywordSearchTermsCallback, | 86 CancelableRequest1<HistoryService::GetMostRecentKeywordSearchTermsCallback, |
87 std::vector<KeywordSearchTermVisit> > | 87 std::vector<KeywordSearchTermVisit> > |
88 GetMostRecentKeywordSearchTermsRequest; | 88 GetMostRecentKeywordSearchTermsRequest; |
89 | 89 |
90 // Generic operations --------------------------------------------------------- | 90 // Generic operations --------------------------------------------------------- |
91 | 91 |
92 // The argument here is an input value, which is the task to run on the | 92 // The argument here is an input value, which is the task to run on the |
93 // background thread. The callback is used to execute the portion of the task | 93 // background thread. The callback is used to execute the portion of the task |
94 // that executes on the main thread. | 94 // that executes on the main thread. |
95 typedef CancelableRequest1<base::Closure, scoped_refptr<HistoryDBTask> > | 95 typedef CancelableRequest1<base::Closure, scoped_refptr<HistoryDBTask> > |
96 HistoryDBTaskRequest; | 96 HistoryDBTaskRequest; |
97 | 97 |
98 } // namespace history | 98 } // namespace history |
99 | 99 |
100 #endif // CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H_ | 100 #endif // CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H_ |
OLD | NEW |