OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef IPC_IPC_MESSAGE_PIPE_READER_H_ | 5 #ifndef IPC_IPC_MESSAGE_PIPE_READER_H_ |
6 #define IPC_IPC_MESSAGE_PIPE_READER_H_ | 6 #define IPC_IPC_MESSAGE_PIPE_READER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/atomicops.h" | 10 #include "base/atomicops.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
14 #include "ipc/ipc_message.h" | 14 #include "ipc/ipc_message.h" |
15 #include "third_party/mojo/src/mojo/public/c/environment/async_waiter.h" | 15 #include "mojo/public/c/environment/async_waiter.h" |
16 #include "third_party/mojo/src/mojo/public/cpp/system/core.h" | 16 #include "mojo/public/cpp/system/core.h" |
17 | 17 |
18 namespace IPC { | 18 namespace IPC { |
19 namespace internal { | 19 namespace internal { |
20 | 20 |
21 class AsyncHandleWaiter; | 21 class AsyncHandleWaiter; |
22 | 22 |
23 // A helper class to handle bytestream directly over mojo::MessagePipe | 23 // A helper class to handle bytestream directly over mojo::MessagePipe |
24 // in template-method pattern. MessagePipeReader manages the lifetime | 24 // in template-method pattern. MessagePipeReader manages the lifetime |
25 // of given MessagePipe and participates the event loop, and | 25 // of given MessagePipe and participates the event loop, and |
26 // read the stream and call the client when it is ready. | 26 // read the stream and call the client when it is ready. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 base::subtle::Atomic32 pending_send_error_; | 117 base::subtle::Atomic32 pending_send_error_; |
118 base::ThreadChecker thread_checker_; | 118 base::ThreadChecker thread_checker_; |
119 | 119 |
120 DISALLOW_COPY_AND_ASSIGN(MessagePipeReader); | 120 DISALLOW_COPY_AND_ASSIGN(MessagePipeReader); |
121 }; | 121 }; |
122 | 122 |
123 } // namespace internal | 123 } // namespace internal |
124 } // namespace IPC | 124 } // namespace IPC |
125 | 125 |
126 #endif // IPC_IPC_MESSAGE_PIPE_READER_H_ | 126 #endif // IPC_IPC_MESSAGE_PIPE_READER_H_ |
OLD | NEW |