| OLD | NEW |
| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // limits). | 106 // limits). |
| 107 // Writes may be pending because they were write-blocked, congestion-throttled | 107 // Writes may be pending because they were write-blocked, congestion-throttled |
| 108 // or yielded to other connections. | 108 // or yielded to other connections. |
| 109 virtual bool WillingAndAbleToWrite() const = 0; | 109 virtual bool WillingAndAbleToWrite() const = 0; |
| 110 | 110 |
| 111 // Called to ask if any handshake messages are pending in this visitor. | 111 // Called to ask if any handshake messages are pending in this visitor. |
| 112 virtual bool HasPendingHandshake() const = 0; | 112 virtual bool HasPendingHandshake() const = 0; |
| 113 | 113 |
| 114 // Called to ask if any streams are open in this visitor, excluding the | 114 // Called to ask if any streams are open in this visitor, excluding the |
| 115 // reserved crypto and headers stream. | 115 // reserved crypto and headers stream. |
| 116 virtual bool HasOpenDataStreams() const = 0; | 116 virtual bool HasOpenDynamicStreams() const = 0; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 // Interface which gets callbacks from the QuicConnection at interesting | 119 // Interface which gets callbacks from the QuicConnection at interesting |
| 120 // points. Implementations must not mutate the state of the connection | 120 // points. Implementations must not mutate the state of the connection |
| 121 // as a result of these callbacks. | 121 // as a result of these callbacks. |
| 122 class NET_EXPORT_PRIVATE QuicConnectionDebugVisitor | 122 class NET_EXPORT_PRIVATE QuicConnectionDebugVisitor |
| 123 : public QuicPacketGenerator::DebugDelegate, | 123 : public QuicPacketGenerator::DebugDelegate, |
| 124 public QuicSentPacketManager::DebugDelegate { | 124 public QuicSentPacketManager::DebugDelegate { |
| 125 public: | 125 public: |
| 126 ~QuicConnectionDebugVisitor() override {} | 126 ~QuicConnectionDebugVisitor() override {} |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 | 852 |
| 853 // True if this is a secure QUIC connection. | 853 // True if this is a secure QUIC connection. |
| 854 bool is_secure_; | 854 bool is_secure_; |
| 855 | 855 |
| 856 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 856 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 857 }; | 857 }; |
| 858 | 858 |
| 859 } // namespace net | 859 } // namespace net |
| 860 | 860 |
| 861 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 861 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
| OLD | NEW |