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

Side by Side Diff: webrtc/p2p/quic/quictransportchannel.h

Issue 2396513003: Restore thread name consistency for webrtc/p2p/ . (Closed)
Patch Set: Explicit call rtc::Thread::CreateWithSocketServer() for unit test. Created 4 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 | « webrtc/p2p/client/socketmonitor.cc ('k') | webrtc/p2p/quic/quictransportchannel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 // Sets up the QUIC handshake. 260 // Sets up the QUIC handshake.
261 bool MaybeStartQuic(); 261 bool MaybeStartQuic();
262 // Creates the QUIC connection and |quic_|. 262 // Creates the QUIC connection and |quic_|.
263 bool CreateQuicSession(); 263 bool CreateQuicSession();
264 // Creates the crypto stream and initializes the handshake. 264 // Creates the crypto stream and initializes the handshake.
265 bool StartQuicHandshake(); 265 bool StartQuicHandshake();
266 // Sets the QuicTransportChannel connectivity state. 266 // Sets the QuicTransportChannel connectivity state.
267 void set_quic_state(QuicTransportState state); 267 void set_quic_state(QuicTransportState state);
268 268
269 // Everything should occur on this thread. 269 // Everything should occur on this thread.
270 rtc::Thread* worker_thread_; 270 rtc::Thread* network_thread_;
271 // Underlying channel which is responsible for connecting with the remote peer 271 // Underlying channel which is responsible for connecting with the remote peer
272 // and sending/receiving packets across the network. 272 // and sending/receiving packets across the network.
273 std::unique_ptr<TransportChannelImpl> channel_; 273 std::unique_ptr<TransportChannelImpl> channel_;
274 // Connectivity state of QuicTransportChannel. 274 // Connectivity state of QuicTransportChannel.
275 QuicTransportState quic_state_ = QUIC_TRANSPORT_NEW; 275 QuicTransportState quic_state_ = QUIC_TRANSPORT_NEW;
276 // QUIC session which establishes the crypto handshake and converts data 276 // QUIC session which establishes the crypto handshake and converts data
277 // to/from QUIC packets. 277 // to/from QUIC packets.
278 std::unique_ptr<QuicSession> quic_; 278 std::unique_ptr<QuicSession> quic_;
279 // Non-crypto config for |quic_|. 279 // Non-crypto config for |quic_|.
280 net::QuicConfig config_; 280 net::QuicConfig config_;
(...skipping 14 matching lines...) Expand all
295 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; 295 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_;
296 // Fingerprint of the remote peer. This must be set before we start QUIC. 296 // Fingerprint of the remote peer. This must be set before we start QUIC.
297 rtc::Optional<RemoteFingerprint> remote_fingerprint_; 297 rtc::Optional<RemoteFingerprint> remote_fingerprint_;
298 298
299 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel); 299 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel);
300 }; 300 };
301 301
302 } // namespace cricket 302 } // namespace cricket
303 303
304 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_ 304 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/client/socketmonitor.cc ('k') | webrtc/p2p/quic/quictransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698