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 // NOTE: This code is not shared between Google and Chrome. | 5 // NOTE: This code is not shared between Google and Chrome. |
6 | 6 |
7 #ifndef NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ | 7 #ifndef NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ |
8 #define NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ | 8 #define NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ |
9 | 9 |
10 #include "net/base/ip_endpoint.h" | 10 #include "net/base/ip_endpoint.h" |
11 #include "net/base/upload_data_stream.h" | 11 #include "net/base/upload_data_stream.h" |
12 #include "net/http/http_request_info.h" | 12 #include "net/http/http_request_info.h" |
13 #include "net/http/http_response_info.h" | 13 #include "net/http/http_response_info.h" |
14 #include "net/http/http_stream.h" | 14 #include "net/http/http_stream.h" |
15 #include "net/quic/quic_data_stream.h" | 15 #include "net/quic/quic_data_stream.h" |
16 | 16 |
17 namespace net { | 17 namespace net { |
18 | 18 |
19 class QuicClientSession; | 19 class QuicSpdySession; |
20 | 20 |
21 // A client-initiated ReliableQuicStream. Instances of this class | 21 // A client-initiated ReliableQuicStream. Instances of this class |
22 // are owned by the QuicClientSession which created them. | 22 // are owned by the QuicClientSession which created them. |
23 class NET_EXPORT_PRIVATE QuicReliableClientStream : public QuicDataStream { | 23 class NET_EXPORT_PRIVATE QuicReliableClientStream : public QuicDataStream { |
24 public: | 24 public: |
25 // Delegate handles protocol specific behavior of a quic stream. | 25 // Delegate handles protocol specific behavior of a quic stream. |
26 class NET_EXPORT_PRIVATE Delegate { | 26 class NET_EXPORT_PRIVATE Delegate { |
27 public: | 27 public: |
28 Delegate() {} | 28 Delegate() {} |
29 | 29 |
(...skipping 11 matching lines...) Expand all Loading... |
41 virtual bool HasSendHeadersComplete() = 0; | 41 virtual bool HasSendHeadersComplete() = 0; |
42 | 42 |
43 protected: | 43 protected: |
44 virtual ~Delegate() {} | 44 virtual ~Delegate() {} |
45 | 45 |
46 private: | 46 private: |
47 DISALLOW_COPY_AND_ASSIGN(Delegate); | 47 DISALLOW_COPY_AND_ASSIGN(Delegate); |
48 }; | 48 }; |
49 | 49 |
50 QuicReliableClientStream(QuicStreamId id, | 50 QuicReliableClientStream(QuicStreamId id, |
51 QuicSession* session, | 51 QuicSpdySession* session, |
52 const BoundNetLog& net_log); | 52 const BoundNetLog& net_log); |
53 | 53 |
54 ~QuicReliableClientStream() override; | 54 ~QuicReliableClientStream() override; |
55 | 55 |
56 // QuicDataStream | 56 // QuicDataStream |
57 uint32 ProcessData(const char* data, uint32 data_len) override; | 57 uint32 ProcessData(const char* data, uint32 data_len) override; |
58 void OnClose() override; | 58 void OnClose() override; |
59 void OnCanWrite() override; | 59 void OnCanWrite() override; |
60 QuicPriority EffectivePriority() const override; | 60 QuicPriority EffectivePriority() const override; |
61 | 61 |
(...skipping 26 matching lines...) Expand all Loading... |
88 Delegate* delegate_; | 88 Delegate* delegate_; |
89 | 89 |
90 CompletionCallback callback_; | 90 CompletionCallback callback_; |
91 | 91 |
92 DISALLOW_COPY_AND_ASSIGN(QuicReliableClientStream); | 92 DISALLOW_COPY_AND_ASSIGN(QuicReliableClientStream); |
93 }; | 93 }; |
94 | 94 |
95 } // namespace net | 95 } // namespace net |
96 | 96 |
97 #endif // NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ | 97 #endif // NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ |
OLD | NEW |