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

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

Issue 10915180: Make DownloadHistory observe manager, items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 typedef CancelableRequest<FaviconService::FaviconResultsCallback> 60 typedef CancelableRequest<FaviconService::FaviconResultsCallback>
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
70 typedef CancelableRequest1<HistoryService::DownloadQueryCallback,
71 std::vector<content::DownloadPersistentStoreInfo> >
72 DownloadQueryRequest;
73
74 typedef CancelableRequest<HistoryService::DownloadCreateCallback>
75 DownloadCreateRequest;
76
77 // Segment usage -------------------------------------------------------------- 69 // Segment usage --------------------------------------------------------------
78 70
79 typedef CancelableRequest1<HistoryService::SegmentQueryCallback, 71 typedef CancelableRequest1<HistoryService::SegmentQueryCallback,
80 ScopedVector<PageUsageData> > 72 ScopedVector<PageUsageData> >
81 QuerySegmentUsageRequest; 73 QuerySegmentUsageRequest;
82 74
83 // Keyword search terms ------------------------------------------------------- 75 // Keyword search terms -------------------------------------------------------
84 76
85 typedef 77 typedef
86 CancelableRequest1<HistoryService::GetMostRecentKeywordSearchTermsCallback, 78 CancelableRequest1<HistoryService::GetMostRecentKeywordSearchTermsCallback,
87 std::vector<KeywordSearchTermVisit> > 79 std::vector<KeywordSearchTermVisit> >
88 GetMostRecentKeywordSearchTermsRequest; 80 GetMostRecentKeywordSearchTermsRequest;
89 81
90 // Generic operations --------------------------------------------------------- 82 // Generic operations ---------------------------------------------------------
91 83
92 // The argument here is an input value, which is the task to run on the 84 // 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 85 // background thread. The callback is used to execute the portion of the task
94 // that executes on the main thread. 86 // that executes on the main thread.
95 typedef CancelableRequest1<base::Closure, scoped_refptr<HistoryDBTask> > 87 typedef CancelableRequest1<base::Closure, scoped_refptr<HistoryDBTask> >
96 HistoryDBTaskRequest; 88 HistoryDBTaskRequest;
97 89
98 } // namespace history 90 } // namespace history
99 91
100 #endif // CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H_ 92 #endif // CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698