| 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 base class for client/server QUIC streams. | 5 // The base class for client/server QUIC streams. |
| 6 | 6 |
| 7 // It does not contain the entire interface needed by an application to interact | 7 // It does not contain the entire interface needed by an application to interact |
| 8 // with a QUIC stream. Some parts of the interface must be obtained by | 8 // with a QUIC stream. Some parts of the interface must be obtained by |
| 9 // accessing the owning session object. A subclass of QuicStream | 9 // accessing the owning session object. A subclass of QuicStream |
| 10 // connects the object and the application that generates and consumes the data | 10 // connects the object and the application that generates and consumes the data |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include <stdint.h> | 21 #include <stdint.h> |
| 22 #include <sys/types.h> | 22 #include <sys/types.h> |
| 23 | 23 |
| 24 #include <list> | 24 #include <list> |
| 25 #include <string> | 25 #include <string> |
| 26 | 26 |
| 27 #include "base/macros.h" | 27 #include "base/macros.h" |
| 28 #include "base/memory/ref_counted.h" | 28 #include "base/memory/ref_counted.h" |
| 29 #include "base/strings/string_piece.h" | 29 #include "base/strings/string_piece.h" |
| 30 #include "net/base/iovec.h" | 30 #include "net/base/iovec.h" |
| 31 #include "net/base/net_export.h" | |
| 32 #include "net/quic/core/quic_flow_controller.h" | 31 #include "net/quic/core/quic_flow_controller.h" |
| 33 #include "net/quic/core/quic_iovector.h" | 32 #include "net/quic/core/quic_iovector.h" |
| 34 #include "net/quic/core/quic_packets.h" | 33 #include "net/quic/core/quic_packets.h" |
| 35 #include "net/quic/core/quic_stream_sequencer.h" | 34 #include "net/quic/core/quic_stream_sequencer.h" |
| 36 #include "net/quic/core/quic_types.h" | 35 #include "net/quic/core/quic_types.h" |
| 36 #include "net/quic/platform/api/quic_export.h" |
| 37 | 37 |
| 38 namespace net { | 38 namespace net { |
| 39 | 39 |
| 40 namespace test { | 40 namespace test { |
| 41 class QuicStreamPeer; | 41 class QuicStreamPeer; |
| 42 } // namespace test | 42 } // namespace test |
| 43 | 43 |
| 44 class QuicSession; | 44 class QuicSession; |
| 45 | 45 |
| 46 class NET_EXPORT_PRIVATE QuicStream { | 46 class QUIC_EXPORT_PRIVATE QuicStream { |
| 47 public: | 47 public: |
| 48 QuicStream(QuicStreamId id, QuicSession* session); | 48 QuicStream(QuicStreamId id, QuicSession* session); |
| 49 | 49 |
| 50 virtual ~QuicStream(); | 50 virtual ~QuicStream(); |
| 51 | 51 |
| 52 // Not in use currently. | 52 // Not in use currently. |
| 53 void SetFromConfig(); | 53 void SetFromConfig(); |
| 54 | 54 |
| 55 // Called by the session when a (potentially duplicate) stream frame has been | 55 // Called by the session when a (potentially duplicate) stream frame has been |
| 56 // received for this stream. | 56 // received for this stream. |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 | 313 |
| 314 // For debugging only, used for busy loop check. | 314 // For debugging only, used for busy loop check. |
| 315 size_t busy_counter_; | 315 size_t busy_counter_; |
| 316 | 316 |
| 317 DISALLOW_COPY_AND_ASSIGN(QuicStream); | 317 DISALLOW_COPY_AND_ASSIGN(QuicStream); |
| 318 }; | 318 }; |
| 319 | 319 |
| 320 } // namespace net | 320 } // namespace net |
| 321 | 321 |
| 322 #endif // NET_QUIC_CORE_QUIC_STREAM_H_ | 322 #endif // NET_QUIC_CORE_QUIC_STREAM_H_ |
| OLD | NEW |