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 #ifndef CHROME_BROWSER_HISTORY_ANDROID_SQLITE_CURSOR_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_ANDROID_SQLITE_CURSOR_H_ |
6 #define CHROME_BROWSER_HISTORY_ANDROID_SQLITE_CURSOR_H_ | 6 #define CHROME_BROWSER_HISTORY_ANDROID_SQLITE_CURSOR_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 test_observer_ = test_observer; | 140 test_observer_ = test_observer; |
141 } | 141 } |
142 | 142 |
143 // Get Favicon from history backend. | 143 // Get Favicon from history backend. |
144 bool GetFavicon(history::FaviconID id, | 144 bool GetFavicon(history::FaviconID id, |
145 std::vector<unsigned char>* image_data); | 145 std::vector<unsigned char>* image_data); |
146 | 146 |
147 void GetFaviconForIDInUIThread( | 147 void GetFaviconForIDInUIThread( |
148 history::FaviconID id, | 148 history::FaviconID id, |
149 CancelableRequestConsumerBase* consumer, | 149 CancelableRequestConsumerBase* consumer, |
150 const FaviconService::FaviconDataCallback& callback); | 150 const FaviconService::FaviconRawCallback& callback); |
151 | 151 |
152 // The Callback function of GetFavicon(). | 152 // The Callback function of GetFavicon(). |
153 void OnFaviconData(FaviconService::Handle handle, | 153 void OnFaviconData(FaviconService::Handle handle, |
154 history::FaviconData favicon); | 154 const history::FaviconBitmapResult& bitmap_result); |
155 | 155 |
156 // The callback function of MoveTo(). | 156 // The callback function of MoveTo(). |
157 void OnMoved(AndroidHistoryProviderService::Handle handle, | 157 void OnMoved(AndroidHistoryProviderService::Handle handle, |
158 int pos); | 158 int pos); |
159 | 159 |
160 // Used to cancel all request on the UI thread during shutdown. | 160 // Used to cancel all request on the UI thread during shutdown. |
161 void CancelAllRequests(base::WaitableEvent* finished); | 161 void CancelAllRequests(base::WaitableEvent* finished); |
162 | 162 |
163 JavaColumnType GetColumnTypeInternal(int column); | 163 JavaColumnType GetColumnTypeInternal(int column); |
164 | 164 |
(...skipping 14 matching lines...) Expand all Loading... |
179 AndroidHistoryProviderService* service_; | 179 AndroidHistoryProviderService* service_; |
180 | 180 |
181 FaviconService* favicon_service_; | 181 FaviconService* favicon_service_; |
182 | 182 |
183 CancelableRequestConsumer consumer_; | 183 CancelableRequestConsumer consumer_; |
184 | 184 |
185 // The count of result rows. | 185 // The count of result rows. |
186 int count_; | 186 int count_; |
187 | 187 |
188 // The favicon image. | 188 // The favicon image. |
189 history::FaviconData favicon_; | 189 history::FaviconBitmapResult favicon_bitmap_result_; |
190 | 190 |
191 TestObserver* test_observer_; | 191 TestObserver* test_observer_; |
192 | 192 |
193 DISALLOW_COPY_AND_ASSIGN(SQLiteCursor); | 193 DISALLOW_COPY_AND_ASSIGN(SQLiteCursor); |
194 }; | 194 }; |
195 | 195 |
196 #endif // CHROME_BROWSER_HISTORY_ANDROID_SQLITE_CURSOR_H_ | 196 #endif // CHROME_BROWSER_HISTORY_ANDROID_SQLITE_CURSOR_H_ |
OLD | NEW |