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

Unified Diff: net/quic/quic_connection.h

Issue 312553003: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_config_test.cc ('k') | net/quic/quic_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection.h
diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h
index 2f91bb4b881f4bde817b2e6b62b35a1312b929ee..c35e863baecd6d54e0f1d177b07844d4d313e571 100644
--- a/net/quic/quic_connection.h
+++ b/net/quic/quic_connection.h
@@ -111,10 +111,10 @@ class NET_EXPORT_PRIVATE QuicConnectionVisitorInterface {
// Interface which gets callbacks from the QuicConnection at interesting
// points. Implementations must not mutate the state of the connection
// as a result of these callbacks.
-class NET_EXPORT_PRIVATE QuicConnectionDebugVisitorInterface
- : public QuicPacketGenerator::DebugDelegateInterface {
+class NET_EXPORT_PRIVATE QuicConnectionDebugVisitor
+ : public QuicPacketGenerator::DebugDelegate {
public:
- virtual ~QuicConnectionDebugVisitorInterface() {}
+ virtual ~QuicConnectionDebugVisitor() {}
// Called when a packet has been sent.
virtual void OnPacketSent(QuicPacketSequenceNumber sequence_number,
@@ -344,7 +344,7 @@ class NET_EXPORT_PRIVATE QuicConnection
void set_visitor(QuicConnectionVisitorInterface* visitor) {
visitor_ = visitor;
}
- void set_debug_visitor(QuicConnectionDebugVisitorInterface* debug_visitor) {
+ void set_debug_visitor(QuicConnectionDebugVisitor* debug_visitor) {
debug_visitor_ = debug_visitor;
packet_generator_.set_debug_delegate(debug_visitor);
}
@@ -353,8 +353,12 @@ class NET_EXPORT_PRIVATE QuicConnection
QuicConnectionId connection_id() const { return connection_id_; }
const QuicClock* clock() const { return clock_; }
QuicRandom* random_generator() const { return random_generator_; }
-
- QuicPacketCreator::Options* options() { return packet_creator_.options(); }
+ size_t max_packet_length() const {
+ return packet_creator_.max_packet_length();
+ }
+ void set_max_packet_length(size_t length) {
+ return packet_creator_.set_max_packet_length(length);
+ }
bool connected() const { return connected_; }
@@ -455,8 +459,7 @@ class NET_EXPORT_PRIVATE QuicConnection
return sent_packet_manager_;
}
- bool CanWrite(TransmissionType transmission_type,
- HasRetransmittableData retransmittable);
+ bool CanWrite(HasRetransmittableData retransmittable);
// Stores current batch state for connection, puts the connection
// into batch mode, and destruction restores the stored batch state.
@@ -695,7 +698,7 @@ class NET_EXPORT_PRIVATE QuicConnection
scoped_ptr<QuicAlarm> ping_alarm_;
QuicConnectionVisitorInterface* visitor_;
- QuicConnectionDebugVisitorInterface* debug_visitor_;
+ QuicConnectionDebugVisitor* debug_visitor_;
QuicPacketCreator packet_creator_;
QuicPacketGenerator packet_generator_;
« no previous file with comments | « net/quic/quic_config_test.cc ('k') | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698