| 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 // This file provides an implementation of |mojo::platform::MessageLoop| that | 5 // This file provides an implementation of |mojo::platform::MessageLoop| that |
| 6 // wraps a |base::MessageLoop|. | 6 // wraps a |base::MessageLoop|. |
| 7 | 7 |
| 8 #ifndef MOJO_EDK_BASE_EDK_PLATFORM_MESSAGE_LOOP_IMPL_H_ | 8 #ifndef MOJO_EDK_BASE_EDK_PLATFORM_MESSAGE_LOOP_IMPL_H_ |
| 9 #define MOJO_EDK_BASE_EDK_PLATFORM_MESSAGE_LOOP_IMPL_H_ | 9 #define MOJO_EDK_BASE_EDK_PLATFORM_MESSAGE_LOOP_IMPL_H_ |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 const base::MessageLoop& base_message_loop() const { | 26 const base::MessageLoop& base_message_loop() const { |
| 27 return base_message_loop_; | 27 return base_message_loop_; |
| 28 } | 28 } |
| 29 base::MessageLoop& base_message_loop() { return base_message_loop_; } | 29 base::MessageLoop& base_message_loop() { return base_message_loop_; } |
| 30 | 30 |
| 31 // |mojo::platform::MessageLoop| implementation: | 31 // |mojo::platform::MessageLoop| implementation: |
| 32 void Run() override; | 32 void Run() override; |
| 33 void RunUntilIdle() override; | 33 void RunUntilIdle() override; |
| 34 void QuitWhenIdle() override; | 34 void QuitWhenIdle() override; |
| 35 void QuitNow() override; |
| 35 const mojo::util::RefPtr<mojo::platform::TaskRunner>& GetTaskRunner() | 36 const mojo::util::RefPtr<mojo::platform::TaskRunner>& GetTaskRunner() |
| 36 const override; | 37 const override; |
| 37 bool IsRunningOnCurrentThread() const override; | 38 bool IsRunningOnCurrentThread() const override; |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 base::MessageLoop base_message_loop_; | 41 base::MessageLoop base_message_loop_; |
| 41 mojo::util::RefPtr<mojo::platform::TaskRunner> task_runner_; | 42 mojo::util::RefPtr<mojo::platform::TaskRunner> task_runner_; |
| 42 | 43 |
| 43 DISALLOW_COPY_AND_ASSIGN(PlatformMessageLoopImpl); | 44 DISALLOW_COPY_AND_ASSIGN(PlatformMessageLoopImpl); |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 } // namespace base_edk | 47 } // namespace base_edk |
| 47 | 48 |
| 48 #endif // MOJO_EDK_BASE_EDK_PLATFORM_MESSAGE_LOOP_IMPL_H_ | 49 #endif // MOJO_EDK_BASE_EDK_PLATFORM_MESSAGE_LOOP_IMPL_H_ |
| OLD | NEW |