| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/atomicops.h" | 13 #include "base/atomicops.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
| 18 #include "ipc/ipc_message.h" | 18 #include "ipc/ipc_message.h" |
| 19 #include "ipc/mojo/ipc.mojom.h" | 19 #include "ipc/mojo/ipc.mojom.h" |
| 20 #include "mojo/public/c/environment/async_waiter.h" | |
| 21 #include "mojo/public/cpp/bindings/associated_binding.h" | 20 #include "mojo/public/cpp/bindings/associated_binding.h" |
| 22 #include "mojo/public/cpp/system/core.h" | 21 #include "mojo/public/cpp/system/core.h" |
| 23 | 22 |
| 24 namespace IPC { | 23 namespace IPC { |
| 25 namespace internal { | 24 namespace internal { |
| 26 | 25 |
| 27 class AsyncHandleWaiter; | 26 class AsyncHandleWaiter; |
| 28 | 27 |
| 29 // A helper class to handle bytestream directly over mojo::MessagePipe | 28 // A helper class to handle bytestream directly over mojo::MessagePipe |
| 30 // in template-method pattern. MessagePipeReader manages the lifetime | 29 // in template-method pattern. MessagePipeReader manages the lifetime |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 mojo::AssociatedBinding<mojom::Channel> binding_; | 97 mojo::AssociatedBinding<mojom::Channel> binding_; |
| 99 base::ThreadChecker thread_checker_; | 98 base::ThreadChecker thread_checker_; |
| 100 | 99 |
| 101 DISALLOW_COPY_AND_ASSIGN(MessagePipeReader); | 100 DISALLOW_COPY_AND_ASSIGN(MessagePipeReader); |
| 102 }; | 101 }; |
| 103 | 102 |
| 104 } // namespace internal | 103 } // namespace internal |
| 105 } // namespace IPC | 104 } // namespace IPC |
| 106 | 105 |
| 107 #endif // IPC_IPC_MESSAGE_PIPE_READER_H_ | 106 #endif // IPC_IPC_MESSAGE_PIPE_READER_H_ |
| OLD | NEW |