Chromium Code Reviews

Side by Side Diff: mojo/edk/base_edk/platform_message_loop_impl.h

Issue 1465203003: EDK: Make ConnectionManagerTest not use base::MessageLoop/RunLoop. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « no previous file | mojo/edk/base_edk/platform_message_loop_impl.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 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...)
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_
OLDNEW
« no previous file with comments | « no previous file | mojo/edk/base_edk/platform_message_loop_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine