| 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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // |MessagePipe|, a reference to the |MessagePipe| should be acquired from | 172 // |MessagePipe|, a reference to the |MessagePipe| should be acquired from |
| 173 // |local_id_to_endpoint_map_| under |lock_| and then the lock released. | 173 // |local_id_to_endpoint_map_| under |lock_| and then the lock released. |
| 174 base::Lock lock_; // Protects the members below. | 174 base::Lock lock_; // Protects the members below. |
| 175 | 175 |
| 176 scoped_ptr<RawChannel> raw_channel_; | 176 scoped_ptr<RawChannel> raw_channel_; |
| 177 bool is_running_; | 177 bool is_running_; |
| 178 // Set when |WillShutdownSoon()| is called. | 178 // Set when |WillShutdownSoon()| is called. |
| 179 bool is_shutting_down_; | 179 bool is_shutting_down_; |
| 180 | 180 |
| 181 typedef base::hash_map<MessageInTransit::EndpointId, | 181 typedef base::hash_map<MessageInTransit::EndpointId, |
| 182 scoped_refptr<ChannelEndpoint> > IdToEndpointMap; | 182 scoped_refptr<ChannelEndpoint>> IdToEndpointMap; |
| 183 IdToEndpointMap local_id_to_endpoint_map_; | 183 IdToEndpointMap local_id_to_endpoint_map_; |
| 184 // The next local ID to try (when allocating new local IDs). Note: It should | 184 // The next local ID to try (when allocating new local IDs). Note: It should |
| 185 // be checked for existence before use. | 185 // be checked for existence before use. |
| 186 MessageInTransit::EndpointId next_local_id_; | 186 MessageInTransit::EndpointId next_local_id_; |
| 187 | 187 |
| 188 DISALLOW_COPY_AND_ASSIGN(Channel); | 188 DISALLOW_COPY_AND_ASSIGN(Channel); |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 } // namespace system | 191 } // namespace system |
| 192 } // namespace mojo | 192 } // namespace mojo |
| 193 | 193 |
| 194 #endif // MOJO_SYSTEM_CHANNEL_H_ | 194 #endif // MOJO_SYSTEM_CHANNEL_H_ |
| OLD | NEW |