Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / net / quic / quic_session.h
index a8ed206..7deb189 100644 (file)
@@ -68,7 +68,6 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
   virtual void OnWriteBlocked() OVERRIDE {}
   virtual void OnSuccessfulVersionNegotiation(
       const QuicVersion& version) OVERRIDE {}
-  virtual void OnConfigNegotiated() OVERRIDE;
   virtual bool OnCanWrite() OVERRIDE;
   virtual bool HasPendingHandshake() const OVERRIDE;
 
@@ -110,7 +109,9 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
                       bool fin);
 
   // Called by streams when they want to close the stream in both directions.
-  virtual void SendRstStream(QuicStreamId id, QuicRstStreamErrorCode error);
+  virtual void SendRstStream(QuicStreamId id,
+                             QuicRstStreamErrorCode error,
+                             QuicStreamOffset bytes_written);
 
   // Called when the session wants to go away and not accept any new streams.
   void SendGoAway(QuicErrorCode error_code, const std::string& reason);
@@ -126,6 +127,9 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
   // a server, returns true if a full, valid client hello has been received.
   virtual bool IsCryptoHandshakeConfirmed();
 
+  // Called by the QuicCryptoStream when a new QuicConfig has been negotiated.
+  virtual void OnConfigNegotiated();
+
   // Called by the QuicCryptoStream when the handshake enters a new state.
   //
   // Clients will call this function in the order: