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

Side by Side Diff: net/quic/quic_connection.h

Issue 301173007: Replaced options from QuicPacketCreator with members and explicit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/quic/quic_connection.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // The entity that handles framing writes for a Quic client or server. 5 // The entity that handles framing writes for a Quic client or server.
6 // Each QuicSession will have a connection associated with it. 6 // Each QuicSession will have a connection associated with it.
7 // 7 //
8 // On the server side, the Dispatcher handles the raw reads, and hands off 8 // On the server side, the Dispatcher handles the raw reads, and hands off
9 // packets via ProcessUdpPacket for framing and processing. 9 // packets via ProcessUdpPacket for framing and processing.
10 // 10 //
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 } 346 }
347 void set_debug_visitor(QuicConnectionDebugVisitorInterface* debug_visitor) { 347 void set_debug_visitor(QuicConnectionDebugVisitorInterface* debug_visitor) {
348 debug_visitor_ = debug_visitor; 348 debug_visitor_ = debug_visitor;
349 packet_generator_.set_debug_delegate(debug_visitor); 349 packet_generator_.set_debug_delegate(debug_visitor);
350 } 350 }
351 const IPEndPoint& self_address() const { return self_address_; } 351 const IPEndPoint& self_address() const { return self_address_; }
352 const IPEndPoint& peer_address() const { return peer_address_; } 352 const IPEndPoint& peer_address() const { return peer_address_; }
353 QuicConnectionId connection_id() const { return connection_id_; } 353 QuicConnectionId connection_id() const { return connection_id_; }
354 const QuicClock* clock() const { return clock_; } 354 const QuicClock* clock() const { return clock_; }
355 QuicRandom* random_generator() const { return random_generator_; } 355 QuicRandom* random_generator() const { return random_generator_; }
356 356 size_t max_packet_length() const {
357 QuicPacketCreator::Options* options() { return packet_creator_.options(); } 357 return packet_creator_.max_packet_length();
358 }
359 void set_max_packet_length(size_t length) {
360 return packet_creator_.set_max_packet_length(length);
361 }
358 362
359 bool connected() const { return connected_; } 363 bool connected() const { return connected_; }
360 364
361 // Must only be called on client connections. 365 // Must only be called on client connections.
362 const QuicVersionVector& server_supported_versions() const { 366 const QuicVersionVector& server_supported_versions() const {
363 DCHECK(!is_server_); 367 DCHECK(!is_server_);
364 return server_supported_versions_; 368 return server_supported_versions_;
365 } 369 }
366 370
367 size_t NumFecGroups() const { return group_map_.size(); } 371 size_t NumFecGroups() const { return group_map_.size(); }
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 // If non-empty this contains the set of versions received in a 757 // If non-empty this contains the set of versions received in a
754 // version negotiation packet. 758 // version negotiation packet.
755 QuicVersionVector server_supported_versions_; 759 QuicVersionVector server_supported_versions_;
756 760
757 DISALLOW_COPY_AND_ASSIGN(QuicConnection); 761 DISALLOW_COPY_AND_ASSIGN(QuicConnection);
758 }; 762 };
759 763
760 } // namespace net 764 } // namespace net
761 765
762 #endif // NET_QUIC_QUIC_CONNECTION_H_ 766 #endif // NET_QUIC_QUIC_CONNECTION_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698