Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: net/quic/quic_reliable_client_stream.h

Issue 1261273003: relnote: Change the QuicStreamSequencer to call OnDataAvailable instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace DonReading with OnFinRead Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quic_http_stream.cc ('k') | net/quic/quic_reliable_client_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
66 void DoneReading();
67 64
68 // While the server's set_priority shouldn't be called externally, the creator 65 // 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. 66 // of client-side streams should be able to set the priority.
70 using QuicDataStream::set_priority; 67 using QuicDataStream::set_priority;
71 68
72 int WriteStreamData(base::StringPiece data, 69 int WriteStreamData(base::StringPiece data,
73 bool fin, 70 bool fin,
74 const CompletionCallback& callback); 71 const CompletionCallback& callback);
75 // Set new |delegate|. |delegate| must not be NULL. 72 // Set new |delegate|. |delegate| must not be NULL.
76 // If this stream has already received data, OnDataReceived() will be 73 // If this stream has already received data, OnDataReceived() will be
(...skipping 29 matching lines...) Expand all
106 CompletionCallback callback_; 103 CompletionCallback callback_;
107 104
108 base::WeakPtrFactory<QuicReliableClientStream> weak_factory_; 105 base::WeakPtrFactory<QuicReliableClientStream> weak_factory_;
109 106
110 DISALLOW_COPY_AND_ASSIGN(QuicReliableClientStream); 107 DISALLOW_COPY_AND_ASSIGN(QuicReliableClientStream);
111 }; 108 };
112 109
113 } // namespace net 110 } // namespace net
114 111
115 #endif // NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ 112 #endif // NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/quic_http_stream.cc ('k') | net/quic/quic_reliable_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698