Index: net/quic/quic_connection.h |
diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h |
index f9f8733318166946c83816ba02df946e37514602..96f5cbcd75343f1589aedad760838532acdae5aa 100644 |
--- a/net/quic/quic_connection.h |
+++ b/net/quic/quic_connection.h |
@@ -251,6 +251,7 @@ class NET_EXPORT_PRIVATE QuicConnection |
const PacketWriterFactory& writer_factory, |
bool owns_writer, |
bool is_server, |
+ bool is_secure, |
const QuicVersionVector& supported_versions); |
~QuicConnection() override; |
@@ -397,8 +398,8 @@ 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_; } |
- size_t max_packet_length() const; |
- void set_max_packet_length(size_t length); |
+ QuicByteCount max_packet_length() const; |
+ void set_max_packet_length(QuicByteCount length); |
bool connected() const { return connected_; } |
@@ -425,16 +426,6 @@ class NET_EXPORT_PRIVATE QuicConnection |
// Returns true if the connection has queued packets or frames. |
bool HasQueuedData() const; |
- // TODO(ianswett): Remove when quic_unified_timeouts is removed. |
- // Sets (or resets) the idle state connection timeout. Also, checks and times |
- // out the connection if network timer has expired for |timeout|. |
- void SetIdleNetworkTimeout(QuicTime::Delta timeout); |
- |
- // Sets (or resets) the total time delta the connection can be alive for. |
- // Used to limit the time a connection can be alive before crypto handshake |
- // finishes. |
- void SetOverallConnectionTimeout(QuicTime::Delta timeout); |
- |
// Sets the overall and idle state connection timeouts. |
void SetNetworkTimeouts(QuicTime::Delta overall_timeout, |
QuicTime::Delta idle_timeout); |
@@ -530,6 +521,9 @@ class NET_EXPORT_PRIVATE QuicConnection |
QuicPacketSequenceNumber sequence_number_of_last_sent_packet() const { |
return sequence_number_of_last_sent_packet_; |
} |
+ const QuicPacketWriter* writer() const { return writer_; } |
+ |
+ bool is_secure() const { return is_secure_; } |
protected: |
// Packets which have not been written to the wire. |
@@ -567,7 +561,6 @@ class NET_EXPORT_PRIVATE QuicConnection |
bool SelectMutualVersion(const QuicVersionVector& available_versions); |
QuicPacketWriter* writer() { return writer_; } |
- const QuicPacketWriter* writer() const { return writer_; } |
bool peer_port_changed() const { return peer_port_changed_; } |
@@ -702,7 +695,7 @@ class NET_EXPORT_PRIVATE QuicConnection |
// decrypted. |
bool last_packet_decrypted_; |
bool last_packet_revived_; // True if the last packet was revived from FEC. |
- size_t last_size_; // Size of the last received packet. |
+ QuicByteCount last_size_; // Size of the last received packet. |
EncryptionLevel last_decrypted_packet_level_; |
QuicPacketHeader last_header_; |
std::vector<QuicStreamFrame> last_stream_frames_; |
@@ -837,6 +830,9 @@ class NET_EXPORT_PRIVATE QuicConnection |
// version negotiation packet. |
QuicVersionVector server_supported_versions_; |
+ // True if this is a secure QUIC connection. |
+ bool is_secure_; |
+ |
DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
}; |