OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef BASE_TEST_SYSTEM_MESSAGE_HANDLER_LINK_ANDROID_H | |
6 #define BASE_TEST_SYSTEM_MESSAGE_HANDLER_LINK_ANDROID_H | |
7 | |
8 #include <jni.h> | |
9 | |
10 #include "base/android/scoped_java_ref.h" | |
11 #include "base/message_loop/message_pump.h" | |
12 | |
13 namespace base { | |
14 | |
15 class MessagePumpForUI; | |
16 class WaitableEvent; | |
17 | |
18 namespace android { | |
19 class TestJavaMessageHandlerFactory; | |
20 | |
21 /** | |
22 * This provides a link to (a way to create) the java-side | |
nyquist
2016/08/18 15:50:03
Nit: This should use // style comments
gsennton
2016/08/18 18:56:55
Done.
| |
23 * TestSystemMessageHandler class. | |
24 */ | |
25 class TestSystemMessageHandlerLink { | |
26 public: | |
27 static bool RegisterJNI(JNIEnv* env); | |
28 | |
29 private: | |
30 friend class base::android::TestJavaMessageHandlerFactory; | |
31 | |
32 TestSystemMessageHandlerLink() = delete; | |
33 ~TestSystemMessageHandlerLink() = delete; | |
34 | |
35 static base::android::ScopedJavaLocalRef<jobject> | |
36 createTestSystemMessageHandler(JNIEnv* env, | |
nyquist
2016/08/18 15:50:03
Nit: CreateTestSystemMessageHandler
gsennton
2016/08/18 18:56:55
Done.
| |
37 base::MessagePump::Delegate* delegate, | |
38 MessagePumpForUI* message_pump, | |
39 WaitableEvent* test_done_event); | |
40 }; | |
41 | |
42 } // namespace android | |
43 } // namespace base | |
44 | |
45 #endif // BASE_TEST_SYSTEM_MESSAGE_HANDLER_LINK_ANDROID_H | |
OLD | NEW |