Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: mojo/system/channel.h

Issue 604643003: Mojo: "> >" -> ">>" in mojo/system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | mojo/system/dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | mojo/system/dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698