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 #include "chrome/browser/history/android/sqlite_cursor.h" | 5 #include "chrome/browser/history/android/sqlite_cursor.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "chrome/browser/favicon/favicon_service.h" | 12 #include "chrome/browser/favicon/favicon_service.h" |
13 #include "chrome/browser/history/android/android_history_types.h" | 13 #include "components/history/core/android/android_history_types.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "jni/SQLiteCursor_jni.h" | 15 #include "jni/SQLiteCursor_jni.h" |
16 #include "sql/statement.h" | 16 #include "sql/statement.h" |
17 | 17 |
18 using base::android::ConvertUTF8ToJavaString; | 18 using base::android::ConvertUTF8ToJavaString; |
19 using base::android::ScopedJavaLocalRef; | 19 using base::android::ScopedJavaLocalRef; |
20 using content::BrowserThread; | 20 using content::BrowserThread; |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 236 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
237 if (!tracker_.get()) | 237 if (!tracker_.get()) |
238 tracker_.reset(new base::CancelableTaskTracker()); | 238 tracker_.reset(new base::CancelableTaskTracker()); |
239 service_->MoveStatement( | 239 service_->MoveStatement( |
240 statement_, | 240 statement_, |
241 position_, | 241 position_, |
242 pos, | 242 pos, |
243 base::Bind(&SQLiteCursor::OnMoved, base::Unretained(this)), | 243 base::Bind(&SQLiteCursor::OnMoved, base::Unretained(this)), |
244 tracker_.get()); | 244 tracker_.get()); |
245 } | 245 } |
OLD | NEW |