| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // This file provides an interface for "message loops for I/O", which are used | |
| 6 // within the EDK itself. | |
| 7 | |
| 8 #ifndef MOJO_EDK_PLATFORM_MESSAGE_LOOP_FOR_IO_H_ | |
| 9 #define MOJO_EDK_PLATFORM_MESSAGE_LOOP_FOR_IO_H_ | |
| 10 | |
| 11 #include "mojo/edk/platform/message_loop.h" | |
| 12 #include "mojo/public/cpp/system/macros.h" | |
| 13 | |
| 14 namespace mojo { | |
| 15 namespace platform { | |
| 16 | |
| 17 // Interface for "message loops for I/O", which are |MessageLoop|s that can | |
| 18 // watch native handles (file descriptors). | |
| 19 // TODO(vtl): Currently, we don't add any methods. Obviously, we'll need to do | |
| 20 // so in the future. (Currently, things will just reach out in appropriately and | |
| 21 // get the |base::MessageLoopForIO|.) | |
| 22 class MessageLoopForIO : public MessageLoop { | |
| 23 public: | |
| 24 ~MessageLoopForIO() override {} | |
| 25 | |
| 26 protected: | |
| 27 MessageLoopForIO() {} | |
| 28 | |
| 29 private: | |
| 30 MOJO_DISALLOW_COPY_AND_ASSIGN(MessageLoopForIO); | |
| 31 }; | |
| 32 | |
| 33 } // namespace platform | |
| 34 } // namespace mojo | |
| 35 | |
| 36 #endif // MOJO_EDK_PLATFORM_MESSAGE_LOOP_FOR_IO_H_ | |
| OLD | NEW |