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

Side by Side Diff: base/android/java_message_handler_factory.h

Issue 2479683004: base: Cleanup class/struct forward declarations (Closed)
Patch Set: Add missing forward declaration Created 4 years, 1 month 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 | « base/android/java_handler_thread.h ('k') | base/debug/activity_tracker.h » ('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 2016 The Chromium Authors. All rights reserved. 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 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 #ifndef BASE_ANDROID_JAVA_MESSAGE_HANDLER_FACTORY_H_ 5 #ifndef BASE_ANDROID_JAVA_MESSAGE_HANDLER_FACTORY_H_
6 #define BASE_ANDROID_JAVA_MESSAGE_HANDLER_FACTORY_H_ 6 #define BASE_ANDROID_JAVA_MESSAGE_HANDLER_FACTORY_H_
7 7
8 #include "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "base/message_loop/message_pump.h" 9 #include "base/message_loop/message_pump.h"
10 10
11 namespace base { 11 namespace base {
12 12
13 class MessagePumpForUI; 13 class MessagePumpForUI;
14 class WaitableEvent;
14 15
15 namespace android { 16 namespace android {
16 17
17 // Factory for creating the Java-side system message handler - only used for 18 // Factory for creating the Java-side system message handler - only used for
18 // testing. 19 // testing.
19 class JavaMessageHandlerFactory { 20 class JavaMessageHandlerFactory {
20 public: 21 public:
21 virtual ~JavaMessageHandlerFactory() {} 22 virtual ~JavaMessageHandlerFactory() {}
22 virtual base::android::ScopedJavaLocalRef<jobject> CreateMessageHandler( 23 virtual base::android::ScopedJavaLocalRef<jobject> CreateMessageHandler(
23 JNIEnv* env, 24 JNIEnv* env,
24 base::MessagePump::Delegate* delegate, 25 base::MessagePump::Delegate* delegate,
25 MessagePumpForUI* message_pump, 26 MessagePumpForUI* message_pump,
26 WaitableEvent* test_done_event) = 0; 27 WaitableEvent* test_done_event) = 0;
27 }; 28 };
28 29
29 } // namespace android 30 } // namespace android
30 } // namespace base 31 } // namespace base
31 32
32 #endif // BASE_ANDROID_JAVA_MESSAGE_HANDLER_FACTORY_H_ 33 #endif // BASE_ANDROID_JAVA_MESSAGE_HANDLER_FACTORY_H_
OLDNEW
« no previous file with comments | « base/android/java_handler_thread.h ('k') | base/debug/activity_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698