| 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/public/system/core.h" | 18 #include "mojo/public/system/core.h" |
| 19 #include "mojo/system/embedder/scoped_platform_handle.h" |
| 19 #include "mojo/system/message_in_transit.h" | 20 #include "mojo/system/message_in_transit.h" |
| 20 #include "mojo/system/message_pipe.h" | 21 #include "mojo/system/message_pipe.h" |
| 21 #include "mojo/system/raw_channel.h" | 22 #include "mojo/system/raw_channel.h" |
| 22 #include "mojo/system/scoped_platform_handle.h" | |
| 23 #include "mojo/system/system_impl_export.h" | 23 #include "mojo/system/system_impl_export.h" |
| 24 | 24 |
| 25 namespace base { | 25 namespace base { |
| 26 class MessageLoop; | 26 class MessageLoop; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace mojo { | 29 namespace mojo { |
| 30 namespace system { | 30 namespace system { |
| 31 | 31 |
| 32 // This class is mostly thread-safe. It must be created on an "I/O thread" (see | 32 // This class is mostly thread-safe. It must be created on an "I/O thread" (see |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 // be checked for existence before use. | 137 // be checked for existence before use. |
| 138 MessageInTransit::EndpointId next_local_id_; | 138 MessageInTransit::EndpointId next_local_id_; |
| 139 | 139 |
| 140 DISALLOW_COPY_AND_ASSIGN(Channel); | 140 DISALLOW_COPY_AND_ASSIGN(Channel); |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 } // namespace system | 143 } // namespace system |
| 144 } // namespace mojo | 144 } // namespace mojo |
| 145 | 145 |
| 146 #endif // MOJO_SYSTEM_CHANNEL_H_ | 146 #endif // MOJO_SYSTEM_CHANNEL_H_ |
| OLD | NEW |