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

Side by Side Diff: mojo/edk/platform/message_loop_for_io.h

Issue 1507903006: EDK: Remove mojo::platform::MessageLoopForIO and add PlatformHandleWatcher. (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. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698