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 QuicSpdySession* session, | 54 QuicSpdySession* session, |
55 const BoundNetLog& net_log); | 55 const BoundNetLog& net_log); |
56 | 56 |
57 ~QuicReliableClientStream() override; | 57 ~QuicReliableClientStream() override; |
58 | 58 |
59 // QuicSpdyStream | 59 // QuicSpdyStream |
60 void OnStreamHeadersComplete(bool fin, size_t frame_len) override; | 60 void OnStreamHeadersComplete(bool fin, size_t frame_len) override; |
61 void OnDataAvailable() override; | 61 void OnDataAvailable() override; |
62 void OnClose() override; | 62 void OnClose() override; |
63 void OnCanWrite() override; | 63 void OnCanWrite() override; |
64 QuicPriority EffectivePriority() const override; | 64 QuicPriority Priority() const override; |
65 | 65 |
66 // While the server's set_priority shouldn't be called externally, the creator | 66 // While the server's set_priority shouldn't be called externally, the creator |
67 // of client-side streams should be able to set the priority. | 67 // of client-side streams should be able to set the priority. |
68 using QuicSpdyStream::set_priority; | 68 using QuicSpdyStream::set_priority; |
69 | 69 |
70 int WriteStreamData(base::StringPiece data, | 70 int WriteStreamData(base::StringPiece data, |
71 bool fin, | 71 bool fin, |
72 const CompletionCallback& callback); | 72 const CompletionCallback& callback); |
73 // Set new |delegate|. |delegate| must not be NULL. | 73 // Set new |delegate|. |delegate| must not be NULL. |
74 // If this stream has already received data, OnDataReceived() will be | 74 // If this stream has already received data, OnDataReceived() will be |
(...skipping 29 matching lines...) Expand all Loading... |
104 CompletionCallback callback_; | 104 CompletionCallback callback_; |
105 | 105 |
106 base::WeakPtrFactory<QuicReliableClientStream> weak_factory_; | 106 base::WeakPtrFactory<QuicReliableClientStream> weak_factory_; |
107 | 107 |
108 DISALLOW_COPY_AND_ASSIGN(QuicReliableClientStream); | 108 DISALLOW_COPY_AND_ASSIGN(QuicReliableClientStream); |
109 }; | 109 }; |
110 | 110 |
111 } // namespace net | 111 } // namespace net |
112 | 112 |
113 #endif // NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ | 113 #endif // NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ |
OLD | NEW |