| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MESSAGE_LOOP_MESSAGE_PUMP_ANDROID_H_ | 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_ANDROID_H_ |
| 6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_ANDROID_H_ | 6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 public: | 23 public: |
| 24 MessagePumpForUI(); | 24 MessagePumpForUI(); |
| 25 virtual ~MessagePumpForUI(); | 25 virtual ~MessagePumpForUI(); |
| 26 | 26 |
| 27 virtual void Run(Delegate* delegate) override; | 27 virtual void Run(Delegate* delegate) override; |
| 28 virtual void Quit() override; | 28 virtual void Quit() override; |
| 29 virtual void ScheduleWork() override; | 29 virtual void ScheduleWork() override; |
| 30 virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) override; | 30 virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) override; |
| 31 | 31 |
| 32 virtual void Start(Delegate* delegate); | 32 virtual void Start(Delegate* delegate); |
| 33 virtual bool IsRedundantQuitExpected(); |
| 33 | 34 |
| 34 static bool RegisterBindings(JNIEnv* env); | 35 static bool RegisterBindings(JNIEnv* env); |
| 35 | 36 |
| 36 private: | 37 private: |
| 37 RunLoop* run_loop_; | 38 RunLoop* run_loop_; |
| 38 base::android::ScopedJavaGlobalRef<jobject> system_message_handler_obj_; | 39 base::android::ScopedJavaGlobalRef<jobject> system_message_handler_obj_; |
| 39 | 40 |
| 40 DISALLOW_COPY_AND_ASSIGN(MessagePumpForUI); | 41 DISALLOW_COPY_AND_ASSIGN(MessagePumpForUI); |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 } // namespace base | 44 } // namespace base |
| 44 | 45 |
| 45 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_ANDROID_H_ | 46 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_ANDROID_H_ |
| OLD | NEW |