OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/public/test/nested_message_pump_android.h" | 5 #include "content/public/test/nested_message_pump_android.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/scoped_java_ref.h" | 8 #include "base/android/scoped_java_ref.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/synchronization/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
12 #include "base/time.h" | 12 #include "base/time/time.h" |
13 #include "jni/NestedSystemMessageHandler_jni.h" | 13 #include "jni/NestedSystemMessageHandler_jni.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 base::LazyInstance<base::android::ScopedJavaGlobalRef<jobject> > | 17 base::LazyInstance<base::android::ScopedJavaGlobalRef<jobject> > |
18 g_message_handler_obj = LAZY_INSTANCE_INITIALIZER; | 18 g_message_handler_obj = LAZY_INSTANCE_INITIALIZER; |
19 | 19 |
20 } // namespace | 20 } // namespace |
21 | 21 |
22 | 22 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 base::MessagePumpForUI::ScheduleDelayedWork(delayed_work_time); | 156 base::MessagePumpForUI::ScheduleDelayedWork(delayed_work_time); |
157 } | 157 } |
158 | 158 |
159 // static | 159 // static |
160 bool NestedMessagePumpAndroid::RegisterJni(JNIEnv* env) { | 160 bool NestedMessagePumpAndroid::RegisterJni(JNIEnv* env) { |
161 return RegisterNativesImpl(env); | 161 return RegisterNativesImpl(env); |
162 } | 162 } |
163 | 163 |
164 } // namespace content | 164 } // namespace content |
OLD | NEW |