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_CHROMIUM_QUIC_CHROMIUM_CLIENT_STREAM_H_ | 7 #ifndef NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_STREAM_H_ |
8 #define NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_STREAM_H_ | 8 #define NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_STREAM_H_ |
9 | 9 |
10 #include <stddef.h> | 10 #include <stddef.h> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 const QuicHeaderList& header_list) override; | 71 const QuicHeaderList& header_list) override; |
72 void OnTrailingHeadersComplete(bool fin, | 72 void OnTrailingHeadersComplete(bool fin, |
73 size_t frame_len, | 73 size_t frame_len, |
74 const QuicHeaderList& header_list) override; | 74 const QuicHeaderList& header_list) override; |
75 void OnPromiseHeaderList(QuicStreamId promised_id, | 75 void OnPromiseHeaderList(QuicStreamId promised_id, |
76 size_t frame_len, | 76 size_t frame_len, |
77 const QuicHeaderList& header_list) override; | 77 const QuicHeaderList& header_list) override; |
78 void OnDataAvailable() override; | 78 void OnDataAvailable() override; |
79 void OnClose() override; | 79 void OnClose() override; |
80 void OnCanWrite() override; | 80 void OnCanWrite() override; |
81 size_t WriteHeaders( | 81 size_t WriteHeaders(SpdyHeaderBlock header_block, |
82 SpdyHeaderBlock header_block, | 82 bool fin, |
83 bool fin, | 83 QuicReferenceCountedPointer<QuicAckListenerInterface> |
84 scoped_refptr<QuicAckListenerInterface> ack_notifier_delegate) override; | 84 ack_notifier_delegate) override; |
85 SpdyPriority priority() const override; | 85 SpdyPriority priority() const override; |
86 | 86 |
87 // While the server's set_priority shouldn't be called externally, the creator | 87 // While the server's set_priority shouldn't be called externally, the creator |
88 // of client-side streams should be able to set the priority. | 88 // of client-side streams should be able to set the priority. |
89 using QuicSpdyStream::SetPriority; | 89 using QuicSpdyStream::SetPriority; |
90 | 90 |
91 int WriteStreamData(base::StringPiece data, | 91 int WriteStreamData(base::StringPiece data, |
92 bool fin, | 92 bool fin, |
93 const CompletionCallback& callback); | 93 const CompletionCallback& callback); |
94 // Same as WriteStreamData except it writes data from a vector of IOBuffers, | 94 // Same as WriteStreamData except it writes data from a vector of IOBuffers, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 std::deque<base::Closure> delegate_tasks_; | 151 std::deque<base::Closure> delegate_tasks_; |
152 | 152 |
153 base::WeakPtrFactory<QuicChromiumClientStream> weak_factory_; | 153 base::WeakPtrFactory<QuicChromiumClientStream> weak_factory_; |
154 | 154 |
155 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientStream); | 155 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientStream); |
156 }; | 156 }; |
157 | 157 |
158 } // namespace net | 158 } // namespace net |
159 | 159 |
160 #endif // NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_STREAM_H_ | 160 #endif // NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_STREAM_H_ |
OLD | NEW |