| 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/upload_data_stream.h" | 11 #include "net/base/upload_data_stream.h" |
| 11 #include "net/http/http_request_info.h" | 12 #include "net/http/http_request_info.h" |
| 12 #include "net/http/http_response_info.h" | 13 #include "net/http/http_response_info.h" |
| 13 #include "net/http/http_stream.h" | 14 #include "net/http/http_stream.h" |
| 14 #include "net/quic/reliable_quic_stream.h" | 15 #include "net/quic/reliable_quic_stream.h" |
| 15 | 16 |
| 16 namespace net { | 17 namespace net { |
| 17 | 18 |
| 18 class QuicClientSession; | 19 class QuicClientSession; |
| 19 | 20 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // ReliableQuicStream | 58 // ReliableQuicStream |
| 58 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE; | 59 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE; |
| 59 virtual void TerminateFromPeer(bool half_close) OVERRIDE; | 60 virtual void TerminateFromPeer(bool half_close) OVERRIDE; |
| 60 | 61 |
| 61 // Set new |delegate|. |delegate| must not be NULL. | 62 // Set new |delegate|. |delegate| must not be NULL. |
| 62 // If this stream has already received data, OnDataReceived() will be | 63 // If this stream has already received data, OnDataReceived() will be |
| 63 // called on the delegate. | 64 // called on the delegate. |
| 64 void SetDelegate(Delegate* delegate); | 65 void SetDelegate(Delegate* delegate); |
| 65 Delegate* GetDelegate() { return delegate_; } | 66 Delegate* GetDelegate() { return delegate_; } |
| 66 | 67 |
| 68 virtual int WriteData(base::StringPiece data, bool fin) OVERRIDE; |
| 69 |
| 70 IPEndPoint GetPeerAddress() const; |
| 71 |
| 67 private: | 72 private: |
| 68 Delegate* delegate_; | 73 Delegate* delegate_; |
| 69 | 74 |
| 70 DISALLOW_COPY_AND_ASSIGN(QuicReliableClientStream); | 75 DISALLOW_COPY_AND_ASSIGN(QuicReliableClientStream); |
| 71 }; | 76 }; |
| 72 | 77 |
| 73 } // namespace net | 78 } // namespace net |
| 74 | 79 |
| 75 #endif // NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ | 80 #endif // NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ |
| OLD | NEW |