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 MOJO_SYSTEM_CHANNEL_ENDPOINT_H_ | 5 #ifndef MOJO_EDK_SYSTEM_CHANNEL_ENDPOINT_H_ |
6 #define MOJO_SYSTEM_CHANNEL_ENDPOINT_H_ | 6 #define MOJO_EDK_SYSTEM_CHANNEL_ENDPOINT_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
12 #include "mojo/embedder/platform_handle_vector.h" | 12 #include "mojo/edk/embedder/platform_handle_vector.h" |
13 #include "mojo/system/message_in_transit.h" | 13 #include "mojo/edk/system/message_in_transit.h" |
14 #include "mojo/system/message_in_transit_queue.h" | 14 #include "mojo/edk/system/message_in_transit_queue.h" |
15 #include "mojo/system/system_impl_export.h" | 15 #include "mojo/edk/system/system_impl_export.h" |
16 | 16 |
17 namespace mojo { | 17 namespace mojo { |
18 namespace system { | 18 namespace system { |
19 | 19 |
20 class Channel; | 20 class Channel; |
21 class MessagePipe; | 21 class MessagePipe; |
22 | 22 |
23 // TODO(vtl): The plan: | 23 // TODO(vtl): The plan: |
24 // - (Done.) Move |Channel::Endpoint| to |ChannelEndpoint|. Make it | 24 // - (Done.) Move |Channel::Endpoint| to |ChannelEndpoint|. Make it |
25 // refcounted, and not copyable. Make |Channel| a friend. Make things work. | 25 // refcounted, and not copyable. Make |Channel| a friend. Make things work. |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // This queue is used before we're running on a channel and ready to send | 200 // This queue is used before we're running on a channel and ready to send |
201 // messages. | 201 // messages. |
202 MessageInTransitQueue paused_message_queue_; | 202 MessageInTransitQueue paused_message_queue_; |
203 | 203 |
204 DISALLOW_COPY_AND_ASSIGN(ChannelEndpoint); | 204 DISALLOW_COPY_AND_ASSIGN(ChannelEndpoint); |
205 }; | 205 }; |
206 | 206 |
207 } // namespace system | 207 } // namespace system |
208 } // namespace mojo | 208 } // namespace mojo |
209 | 209 |
210 #endif // MOJO_SYSTEM_CHANNEL_ENDPOINT_H_ | 210 #endif // MOJO_EDK_SYSTEM_CHANNEL_ENDPOINT_H_ |
OLD | NEW |