Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 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_ANDROID_JAVA_MESSAGE_HANDLER_FACTORY_H_ | |
| 6 #define BASE_ANDROID_JAVA_MESSAGE_HANDLER_FACTORY_H_ | |
| 7 | |
| 8 #include "base/android/scoped_java_ref.h" | |
| 9 #include "base/message_loop/message_pump.h" | |
| 10 | |
| 11 namespace base { | |
| 12 | |
| 13 class MessagePumpForUI; | |
| 14 | |
| 15 namespace android { | |
| 16 | |
| 17 /** | |
| 18 * Factory for creating the Java-side system message handler - only used for | |
|
nyquist
2016/08/18 15:50:02
Nit: Should be C++-style comment
gsennton
2016/08/18 18:56:54
Done.
| |
| 19 * testing. | |
| 20 */ | |
| 21 class JavaMessageHandlerFactory { | |
| 22 public: | |
| 23 virtual ~JavaMessageHandlerFactory() {} | |
| 24 virtual base::android::ScopedJavaLocalRef<jobject> CreateMessageHandler( | |
| 25 JNIEnv* env, | |
| 26 base::MessagePump::Delegate* delegate, | |
| 27 MessagePumpForUI* message_pump, | |
| 28 WaitableEvent* test_done_event) = 0; | |
| 29 }; | |
| 30 | |
| 31 } // namespace android | |
| 32 } // namespace base | |
| 33 | |
| 34 #endif // BASE_ANDROID_JAVA_MESSAGE_HANDLER_FACTORY_H_ | |
| OLD | NEW |