OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "mojo/edk/base_edk/platform_message_loop_impl.h" | 5 #include "mojo/edk/base_edk/platform_message_loop_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "mojo/edk/base_edk/platform_task_runner_impl.h" | 9 #include "mojo/edk/base_edk/platform_task_runner_impl.h" |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 } | 32 } |
33 | 33 |
34 void PlatformMessageLoopImpl::RunUntilIdle() { | 34 void PlatformMessageLoopImpl::RunUntilIdle() { |
35 base_message_loop_.RunUntilIdle(); | 35 base_message_loop_.RunUntilIdle(); |
36 } | 36 } |
37 | 37 |
38 void PlatformMessageLoopImpl::QuitWhenIdle() { | 38 void PlatformMessageLoopImpl::QuitWhenIdle() { |
39 base_message_loop_.QuitWhenIdle(); | 39 base_message_loop_.QuitWhenIdle(); |
40 } | 40 } |
41 | 41 |
| 42 void PlatformMessageLoopImpl::QuitNow() { |
| 43 base_message_loop_.QuitNow(); |
| 44 } |
| 45 |
42 const RefPtr<TaskRunner>& PlatformMessageLoopImpl::GetTaskRunner() const { | 46 const RefPtr<TaskRunner>& PlatformMessageLoopImpl::GetTaskRunner() const { |
43 return task_runner_; | 47 return task_runner_; |
44 } | 48 } |
45 | 49 |
46 bool PlatformMessageLoopImpl::IsRunningOnCurrentThread() const { | 50 bool PlatformMessageLoopImpl::IsRunningOnCurrentThread() const { |
47 return base::MessageLoop::current() == &base_message_loop_ && | 51 return base::MessageLoop::current() == &base_message_loop_ && |
48 base_message_loop_.is_running(); | 52 base_message_loop_.is_running(); |
49 } | 53 } |
50 | 54 |
51 } // namespace base_edk | 55 } // namespace base_edk |
OLD | NEW |