| 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 "components/history/core/android/android_history_types.h" | 12 #include "components/history/core/browser/android/android_history_types.h" |
| 13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 14 #include "jni/SQLiteCursor_jni.h" | 14 #include "jni/SQLiteCursor_jni.h" |
| 15 #include "sql/statement.h" | 15 #include "sql/statement.h" |
| 16 | 16 |
| 17 using base::android::ConvertUTF8ToJavaString; | 17 using base::android::ConvertUTF8ToJavaString; |
| 18 using base::android::ScopedJavaLocalRef; | 18 using base::android::ScopedJavaLocalRef; |
| 19 using content::BrowserThread; | 19 using content::BrowserThread; |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 231 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 232 if (!tracker_.get()) | 232 if (!tracker_.get()) |
| 233 tracker_.reset(new base::CancelableTaskTracker()); | 233 tracker_.reset(new base::CancelableTaskTracker()); |
| 234 service_->MoveStatement( | 234 service_->MoveStatement( |
| 235 statement_, | 235 statement_, |
| 236 position_, | 236 position_, |
| 237 pos, | 237 pos, |
| 238 base::Bind(&SQLiteCursor::OnMoved, base::Unretained(this)), | 238 base::Bind(&SQLiteCursor::OnMoved, base::Unretained(this)), |
| 239 tracker_.get()); | 239 tracker_.get()); |
| 240 } | 240 } |
| OLD | NEW |