| 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" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const BoundNetLog& net_log); | 54 const BoundNetLog& net_log); |
| 55 | 55 |
| 56 ~QuicReliableClientStream() override; | 56 ~QuicReliableClientStream() override; |
| 57 | 57 |
| 58 // QuicDataStream | 58 // QuicDataStream |
| 59 void OnStreamHeadersComplete(bool fin, size_t frame_len) override; | 59 void OnStreamHeadersComplete(bool fin, size_t frame_len) override; |
| 60 void OnDataAvailable() override; | 60 void OnDataAvailable() override; |
| 61 void OnClose() override; | 61 void OnClose() override; |
| 62 void OnCanWrite() override; | 62 void OnCanWrite() override; |
| 63 QuicPriority EffectivePriority() const override; | 63 QuicPriority EffectivePriority() const override; |
| 64 void OnFinRead() override; | |
| 65 | 64 |
| 66 void DoneReading(); | 65 void DoneReading(); |
| 67 | 66 |
| 68 // While the server's set_priority shouldn't be called externally, the creator | 67 // While the server's set_priority shouldn't be called externally, the creator |
| 69 // of client-side streams should be able to set the priority. | 68 // of client-side streams should be able to set the priority. |
| 70 using QuicDataStream::set_priority; | 69 using QuicDataStream::set_priority; |
| 71 | 70 |
| 72 int WriteStreamData(base::StringPiece data, | 71 int WriteStreamData(base::StringPiece data, |
| 73 bool fin, | 72 bool fin, |
| 74 const CompletionCallback& callback); | 73 const CompletionCallback& callback); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 CompletionCallback callback_; | 105 CompletionCallback callback_; |
| 107 | 106 |
| 108 base::WeakPtrFactory<QuicReliableClientStream> weak_factory_; | 107 base::WeakPtrFactory<QuicReliableClientStream> weak_factory_; |
| 109 | 108 |
| 110 DISALLOW_COPY_AND_ASSIGN(QuicReliableClientStream); | 109 DISALLOW_COPY_AND_ASSIGN(QuicReliableClientStream); |
| 111 }; | 110 }; |
| 112 | 111 |
| 113 } // namespace net | 112 } // namespace net |
| 114 | 113 |
| 115 #endif // NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ | 114 #endif // NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ |
| OLD | NEW |