OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 MOJO_SYSTEM_MESSAGE_PIPE_H_ | 5 #ifndef MOJO_SYSTEM_MESSAGE_PIPE_H_ |
6 #define MOJO_SYSTEM_MESSAGE_PIPE_H_ | 6 #define MOJO_SYSTEM_MESSAGE_PIPE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
14 #include "mojo/public/c/system/core.h" | 14 #include "mojo/public/c/system/message_pipe.h" |
| 15 #include "mojo/public/c/system/types.h" |
15 #include "mojo/system/dispatcher.h" | 16 #include "mojo/system/dispatcher.h" |
16 #include "mojo/system/message_in_transit.h" | 17 #include "mojo/system/message_in_transit.h" |
17 #include "mojo/system/message_pipe_endpoint.h" | 18 #include "mojo/system/message_pipe_endpoint.h" |
18 #include "mojo/system/system_impl_export.h" | 19 #include "mojo/system/system_impl_export.h" |
19 | 20 |
20 namespace mojo { | 21 namespace mojo { |
21 namespace system { | 22 namespace system { |
22 | 23 |
23 class Channel; | 24 class Channel; |
24 class Waiter; | 25 class Waiter; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 base::Lock lock_; // Protects the following members. | 111 base::Lock lock_; // Protects the following members. |
111 scoped_ptr<MessagePipeEndpoint> endpoints_[2]; | 112 scoped_ptr<MessagePipeEndpoint> endpoints_[2]; |
112 | 113 |
113 DISALLOW_COPY_AND_ASSIGN(MessagePipe); | 114 DISALLOW_COPY_AND_ASSIGN(MessagePipe); |
114 }; | 115 }; |
115 | 116 |
116 } // namespace system | 117 } // namespace system |
117 } // namespace mojo | 118 } // namespace mojo |
118 | 119 |
119 #endif // MOJO_SYSTEM_MESSAGE_PIPE_H_ | 120 #endif // MOJO_SYSTEM_MESSAGE_PIPE_H_ |
OLD | NEW |