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

Side by Side Diff: mojo/android/system/base_run_loop.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
« no previous file with comments | « mojo/android/javatests/validation_test_util.cc ('k') | mojo/android/system/core_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "mojo/android/system/base_run_loop.h" 5 #include "mojo/android/system/base_run_loop.h"
6 6
7 #include <jni.h> 7 #include <jni.h>
8 8
9 #include "base/android/base_jni_registrar.h" 9 #include "base/android/base_jni_registrar.h"
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
11 #include "base/android/jni_registrar.h" 11 #include "base/android/jni_registrar.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/message_loop/message_loop.h" 13 #include "base/message_loop/message_loop.h"
14 #include "jni/BaseRunLoop_jni.h" 14 #include "jni/BaseRunLoop_jni.h"
15 #include "mojo/message_pump/message_pump_mojo.h" 15 #include "mojo/message_pump/message_pump_mojo.h"
16 16
17 using base::android::JavaParamRef;
18
17 namespace mojo { 19 namespace mojo {
18 namespace android { 20 namespace android {
19 21
20 static jlong CreateBaseRunLoop(JNIEnv* env, 22 static jlong CreateBaseRunLoop(JNIEnv* env,
21 const JavaParamRef<jobject>& jcaller) { 23 const JavaParamRef<jobject>& jcaller) {
22 base::MessageLoop* message_loop = 24 base::MessageLoop* message_loop =
23 new base::MessageLoop(common::MessagePumpMojo::Create()); 25 new base::MessageLoop(common::MessagePumpMojo::Create());
24 return reinterpret_cast<uintptr_t>(message_loop); 26 return reinterpret_cast<uintptr_t>(message_loop);
25 } 27 }
26 28
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 74 }
73 75
74 bool RegisterBaseRunLoop(JNIEnv* env) { 76 bool RegisterBaseRunLoop(JNIEnv* env) {
75 return RegisterNativesImpl(env); 77 return RegisterNativesImpl(env);
76 } 78 }
77 79
78 } // namespace android 80 } // namespace android
79 } // namespace mojo 81 } // namespace mojo
80 82
81 83
OLDNEW
« no previous file with comments | « mojo/android/javatests/validation_test_util.cc ('k') | mojo/android/system/core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698