| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 void set_test_observer(TestObserver* test_observer) { | 146 void set_test_observer(TestObserver* test_observer) { |
| 147 test_observer_ = test_observer; | 147 test_observer_ = test_observer; |
| 148 } | 148 } |
| 149 | 149 |
| 150 // Get Favicon from history backend. | 150 // Get Favicon from history backend. |
| 151 bool GetFavicon(favicon_base::FaviconID id, | 151 bool GetFavicon(favicon_base::FaviconID id, |
| 152 std::vector<unsigned char>* image_data); | 152 std::vector<unsigned char>* image_data); |
| 153 | 153 |
| 154 void GetFaviconForIDInUIThread( | 154 void GetFaviconForIDInUIThread( |
| 155 favicon_base::FaviconID id, | 155 favicon_base::FaviconID id, |
| 156 const favicon_base::FaviconRawCallback& callback); | 156 const favicon_base::FaviconRawBitmapCallback& callback); |
| 157 | 157 |
| 158 // The callback function of FaviconService::GetLargestRawFaviconForID(). | 158 // The callback function of FaviconService::GetLargestRawFaviconForID(). |
| 159 void OnFaviconData(const favicon_base::FaviconBitmapResult& bitmap_result); | 159 void OnFaviconData(const favicon_base::FaviconRawBitmapResult& bitmap_result); |
| 160 | 160 |
| 161 // The callback function of MoveTo(). | 161 // The callback function of MoveTo(). |
| 162 void OnMoved(AndroidHistoryProviderService::Handle handle, int pos); | 162 void OnMoved(AndroidHistoryProviderService::Handle handle, int pos); |
| 163 | 163 |
| 164 JavaColumnType GetColumnTypeInternal(int column); | 164 JavaColumnType GetColumnTypeInternal(int column); |
| 165 | 165 |
| 166 // Runs the MoveStatement on UI thread. | 166 // Runs the MoveStatement on UI thread. |
| 167 void RunMoveStatementOnUIThread(int pos); | 167 void RunMoveStatementOnUIThread(int pos); |
| 168 | 168 |
| 169 // The current row position, '-1' means the position before the first one. | 169 // The current row position, '-1' means the position before the first one. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 182 FaviconService* favicon_service_; | 182 FaviconService* favicon_service_; |
| 183 | 183 |
| 184 // Live on UI thread. | 184 // Live on UI thread. |
| 185 scoped_ptr<CancelableRequestConsumer> consumer_; | 185 scoped_ptr<CancelableRequestConsumer> consumer_; |
| 186 scoped_ptr<base::CancelableTaskTracker> tracker_; | 186 scoped_ptr<base::CancelableTaskTracker> tracker_; |
| 187 | 187 |
| 188 // The count of result rows. | 188 // The count of result rows. |
| 189 int count_; | 189 int count_; |
| 190 | 190 |
| 191 // The favicon image. | 191 // The favicon image. |
| 192 favicon_base::FaviconBitmapResult favicon_bitmap_result_; | 192 favicon_base::FaviconRawBitmapResult favicon_bitmap_result_; |
| 193 | 193 |
| 194 TestObserver* test_observer_; | 194 TestObserver* test_observer_; |
| 195 | 195 |
| 196 DISALLOW_COPY_AND_ASSIGN(SQLiteCursor); | 196 DISALLOW_COPY_AND_ASSIGN(SQLiteCursor); |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 #endif // CHROME_BROWSER_HISTORY_ANDROID_SQLITE_CURSOR_H_ | 199 #endif // CHROME_BROWSER_HISTORY_ANDROID_SQLITE_CURSOR_H_ |
| OLD | NEW |