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_CHANNEL_H_ | 5 #ifndef MOJO_SYSTEM_CHANNEL_H_ |
6 #define MOJO_SYSTEM_CHANNEL_H_ | 6 #define MOJO_SYSTEM_CHANNEL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/containers/hash_tables.h" | 12 #include "base/containers/hash_tables.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/strings/string_piece.h" | 15 #include "base/strings/string_piece.h" |
16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
17 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
18 #include "mojo/embedder/scoped_platform_handle.h" | 18 #include "mojo/embedder/scoped_platform_handle.h" |
19 #include "mojo/public/system/core.h" | 19 #include "mojo/public/c/system/core.h" |
20 #include "mojo/system/message_in_transit.h" | 20 #include "mojo/system/message_in_transit.h" |
21 #include "mojo/system/message_pipe.h" | 21 #include "mojo/system/message_pipe.h" |
22 #include "mojo/system/raw_channel.h" | 22 #include "mojo/system/raw_channel.h" |
23 #include "mojo/system/system_impl_export.h" | 23 #include "mojo/system/system_impl_export.h" |
24 | 24 |
25 namespace mojo { | 25 namespace mojo { |
26 namespace system { | 26 namespace system { |
27 | 27 |
28 // This class is mostly thread-safe. It must be created on an I/O thread. | 28 // This class is mostly thread-safe. It must be created on an I/O thread. |
29 // |Init()| must be called on that same thread before it becomes thread-safe (in | 29 // |Init()| must be called on that same thread before it becomes thread-safe (in |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 // be checked for existence before use. | 148 // be checked for existence before use. |
149 MessageInTransit::EndpointId next_local_id_; | 149 MessageInTransit::EndpointId next_local_id_; |
150 | 150 |
151 DISALLOW_COPY_AND_ASSIGN(Channel); | 151 DISALLOW_COPY_AND_ASSIGN(Channel); |
152 }; | 152 }; |
153 | 153 |
154 } // namespace system | 154 } // namespace system |
155 } // namespace mojo | 155 } // namespace mojo |
156 | 156 |
157 #endif // MOJO_SYSTEM_CHANNEL_H_ | 157 #endif // MOJO_SYSTEM_CHANNEL_H_ |
OLD | NEW |