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

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

Issue 1856073002: Coalesce small buffers in net::BidirectionalStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Javadoc Created 4 years, 8 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
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 <stddef.h> 10 #include <stddef.h>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 QuicAckListenerInterface* ack_notifier_delegate) override; 72 QuicAckListenerInterface* ack_notifier_delegate) override;
73 SpdyPriority priority() const override; 73 SpdyPriority priority() const override;
74 74
75 // While the server's set_priority shouldn't be called externally, the creator 75 // While the server's set_priority shouldn't be called externally, the creator
76 // of client-side streams should be able to set the priority. 76 // of client-side streams should be able to set the priority.
77 using QuicSpdyStream::SetPriority; 77 using QuicSpdyStream::SetPriority;
78 78
79 int WriteStreamData(base::StringPiece data, 79 int WriteStreamData(base::StringPiece data,
80 bool fin, 80 bool fin,
81 const CompletionCallback& callback); 81 const CompletionCallback& callback);
82 int WritevStreamData(const std::vector<base::StringPiece>& data,
83 bool fin,
84 const CompletionCallback& callback);
82 // Set new |delegate|. |delegate| must not be NULL. 85 // Set new |delegate|. |delegate| must not be NULL.
83 // If this stream has already received data, OnDataReceived() will be 86 // If this stream has already received data, OnDataReceived() will be
84 // called on the delegate. 87 // called on the delegate.
85 void SetDelegate(Delegate* delegate); 88 void SetDelegate(Delegate* delegate);
86 Delegate* GetDelegate() { return delegate_; } 89 Delegate* GetDelegate() { return delegate_; }
87 void OnError(int error); 90 void OnError(int error);
88 91
89 // Reads at most |buf_len| bytes into |buf|. Returns the number of bytes read. 92 // Reads at most |buf_len| bytes into |buf|. Returns the number of bytes read.
90 int Read(IOBuffer* buf, int buf_len); 93 int Read(IOBuffer* buf, int buf_len);
91 94
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 std::deque<base::Closure> delegate_tasks_; 133 std::deque<base::Closure> delegate_tasks_;
131 134
132 base::WeakPtrFactory<QuicChromiumClientStream> weak_factory_; 135 base::WeakPtrFactory<QuicChromiumClientStream> weak_factory_;
133 136
134 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientStream); 137 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientStream);
135 }; 138 };
136 139
137 } // namespace net 140 } // namespace net
138 141
139 #endif // NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ 142 #endif // NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698