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

Side by Side Diff: base/message_loop/message_pump_android.h

Issue 900613004: Update {virtual,override,final} to follow C++11 style in base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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/memory/discardable_memory_ashmem.h ('k') | base/test/test_support_android.cc » ('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 (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"
11 #include "base/base_export.h" 11 #include "base/base_export.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/message_loop/message_pump.h" 13 #include "base/message_loop/message_pump.h"
14 14
15 namespace base { 15 namespace base {
16 16
17 class RunLoop; 17 class RunLoop;
18 class TimeTicks; 18 class TimeTicks;
19 19
20 // This class implements a MessagePump needed for TYPE_UI MessageLoops on 20 // This class implements a MessagePump needed for TYPE_UI MessageLoops on
21 // OS_ANDROID platform. 21 // OS_ANDROID platform.
22 class BASE_EXPORT MessagePumpForUI : public MessagePump { 22 class BASE_EXPORT MessagePumpForUI : public MessagePump {
23 public: 23 public:
24 MessagePumpForUI(); 24 MessagePumpForUI();
25 virtual ~MessagePumpForUI(); 25 ~MessagePumpForUI() override;
26 26
27 virtual void Run(Delegate* delegate) override; 27 void Run(Delegate* delegate) override;
28 virtual void Quit() override; 28 void Quit() override;
29 virtual void ScheduleWork() override; 29 void ScheduleWork() override;
30 virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) override; 30 void ScheduleDelayedWork(const TimeTicks& delayed_work_time) override;
31 31
32 virtual void Start(Delegate* delegate); 32 virtual void Start(Delegate* delegate);
33 33
34 static bool RegisterBindings(JNIEnv* env); 34 static bool RegisterBindings(JNIEnv* env);
35 35
36 private: 36 private:
37 RunLoop* run_loop_; 37 RunLoop* run_loop_;
38 base::android::ScopedJavaGlobalRef<jobject> system_message_handler_obj_; 38 base::android::ScopedJavaGlobalRef<jobject> system_message_handler_obj_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(MessagePumpForUI); 40 DISALLOW_COPY_AND_ASSIGN(MessagePumpForUI);
41 }; 41 };
42 42
43 } // namespace base 43 } // namespace base
44 44
45 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_ANDROID_H_ 45 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_ANDROID_H_
OLDNEW
« no previous file with comments | « base/memory/discardable_memory_ashmem.h ('k') | base/test/test_support_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698