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/system/core.h" | 14 #include "mojo/public/c/system/core.h" |
15 #include "mojo/system/dispatcher.h" | 15 #include "mojo/system/dispatcher.h" |
16 #include "mojo/system/message_in_transit.h" | 16 #include "mojo/system/message_in_transit.h" |
17 #include "mojo/system/message_pipe_endpoint.h" | 17 #include "mojo/system/message_pipe_endpoint.h" |
18 #include "mojo/system/system_impl_export.h" | 18 #include "mojo/system/system_impl_export.h" |
19 | 19 |
20 namespace mojo { | 20 namespace mojo { |
21 namespace system { | 21 namespace system { |
22 | 22 |
23 class Channel; | 23 class Channel; |
24 class Waiter; | 24 class Waiter; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 base::Lock lock_; // Protects the following members. | 99 base::Lock lock_; // Protects the following members. |
100 scoped_ptr<MessagePipeEndpoint> endpoints_[2]; | 100 scoped_ptr<MessagePipeEndpoint> endpoints_[2]; |
101 | 101 |
102 DISALLOW_COPY_AND_ASSIGN(MessagePipe); | 102 DISALLOW_COPY_AND_ASSIGN(MessagePipe); |
103 }; | 103 }; |
104 | 104 |
105 } // namespace system | 105 } // namespace system |
106 } // namespace mojo | 106 } // namespace mojo |
107 | 107 |
108 #endif // MOJO_SYSTEM_MESSAGE_PIPE_H_ | 108 #endif // MOJO_SYSTEM_MESSAGE_PIPE_H_ |
OLD | NEW |