| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_EDK_SYSTEM_DATA_PIPE_IMPL_H_ | 5 #ifndef MOJO_EDK_SYSTEM_DATA_PIPE_IMPL_H_ |
| 6 #define MOJO_EDK_SYSTEM_DATA_PIPE_IMPL_H_ | 6 #define MOJO_EDK_SYSTEM_DATA_PIPE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 } | 125 } |
| 126 void SetProducerClosed() MOJO_NO_THREAD_SAFETY_ANALYSIS { | 126 void SetProducerClosed() MOJO_NO_THREAD_SAFETY_ANALYSIS { |
| 127 owner_->SetProducerClosedNoLock(); | 127 owner_->SetProducerClosedNoLock(); |
| 128 } | 128 } |
| 129 void SetConsumerClosed() MOJO_NO_THREAD_SAFETY_ANALYSIS { | 129 void SetConsumerClosed() MOJO_NO_THREAD_SAFETY_ANALYSIS { |
| 130 owner_->SetConsumerClosedNoLock(); | 130 owner_->SetConsumerClosedNoLock(); |
| 131 } | 131 } |
| 132 | 132 |
| 133 ChannelEndpointClient* channel_endpoint_client() const { return owner_; } | 133 ChannelEndpointClient* channel_endpoint_client() const { return owner_; } |
| 134 | 134 |
| 135 const MojoCreateDataPipeOptions& validated_options() const { | 135 MojoCreateDataPipeOptions validated_options() const { |
| 136 return owner_->validated_options(); | 136 return owner_->validated_options(); |
| 137 } | 137 } |
| 138 size_t element_num_bytes() const { return owner_->element_num_bytes(); } | 138 size_t element_num_bytes() const { return owner_->element_num_bytes(); } |
| 139 size_t capacity_num_bytes() const { return owner_->capacity_num_bytes(); } | 139 size_t capacity_num_bytes() const { return owner_->capacity_num_bytes(); } |
| 140 bool producer_open() const MOJO_NO_THREAD_SAFETY_ANALYSIS { | 140 bool producer_open() const MOJO_NO_THREAD_SAFETY_ANALYSIS { |
| 141 return owner_->producer_open_no_lock(); | 141 return owner_->producer_open_no_lock(); |
| 142 } | 142 } |
| 143 bool consumer_open() const MOJO_NO_THREAD_SAFETY_ANALYSIS { | 143 bool consumer_open() const MOJO_NO_THREAD_SAFETY_ANALYSIS { |
| 144 return owner_->consumer_open_no_lock(); | 144 return owner_->consumer_open_no_lock(); |
| 145 } | 145 } |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 struct MOJO_ALIGNAS(8) SerializedDataPipeConsumerDispatcher { | 192 struct MOJO_ALIGNAS(8) SerializedDataPipeConsumerDispatcher { |
| 193 // Only validated (and thus canonicalized) options should be serialized. | 193 // Only validated (and thus canonicalized) options should be serialized. |
| 194 // However, the deserializer must revalidate (as with everything received). | 194 // However, the deserializer must revalidate (as with everything received). |
| 195 MojoCreateDataPipeOptions validated_options; | 195 MojoCreateDataPipeOptions validated_options; |
| 196 }; | 196 }; |
| 197 | 197 |
| 198 } // namespace system | 198 } // namespace system |
| 199 } // namespace mojo | 199 } // namespace mojo |
| 200 | 200 |
| 201 #endif // MOJO_EDK_SYSTEM_DATA_PIPE_IMPL_H_ | 201 #endif // MOJO_EDK_SYSTEM_DATA_PIPE_IMPL_H_ |
| OLD | NEW |