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

Side by Side Diff: chrome/browser/history/android/sqlite_cursor.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
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 #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/browser/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::JavaParamRef;
18 using base::android::ScopedJavaLocalRef; 19 using base::android::ScopedJavaLocalRef;
19 using content::BrowserThread; 20 using content::BrowserThread;
20 21
21 namespace { 22 namespace {
22 23
23 SQLiteCursor::JavaColumnType ToJavaColumnType(sql::ColType type) { 24 SQLiteCursor::JavaColumnType ToJavaColumnType(sql::ColType type) {
24 switch (type) { 25 switch (type) {
25 case sql::COLUMN_TYPE_INTEGER: 26 case sql::COLUMN_TYPE_INTEGER:
26 return SQLiteCursor::NUMERIC; 27 return SQLiteCursor::NUMERIC;
27 case sql::COLUMN_TYPE_FLOAT: 28 case sql::COLUMN_TYPE_FLOAT:
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 DCHECK_CURRENTLY_ON(BrowserThread::UI); 247 DCHECK_CURRENTLY_ON(BrowserThread::UI);
247 if (!tracker_.get()) 248 if (!tracker_.get())
248 tracker_.reset(new base::CancelableTaskTracker()); 249 tracker_.reset(new base::CancelableTaskTracker());
249 service_->MoveStatement( 250 service_->MoveStatement(
250 statement_, 251 statement_,
251 position_, 252 position_,
252 pos, 253 pos,
253 base::Bind(&SQLiteCursor::OnMoved, base::Unretained(this)), 254 base::Bind(&SQLiteCursor::OnMoved, base::Unretained(this)),
254 tracker_.get()); 255 tracker_.get());
255 } 256 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_distiller/tab_utils_android.cc ('k') | chrome/browser/invalidation/invalidation_service_factory_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698