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

Side by Side Diff: net/spdy/spdy_http_stream.h

Issue 1914663002: Increase read buffer size for SPDY upload (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Bence's comments Created 4 years, 7 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 | « no previous file | net/spdy/spdy_http_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 #ifndef NET_SPDY_SPDY_HTTP_STREAM_H_ 5 #ifndef NET_SPDY_SPDY_HTTP_STREAM_H_
6 #define NET_SPDY_SPDY_HTTP_STREAM_H_ 6 #define NET_SPDY_SPDY_HTTP_STREAM_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 14 matching lines...) Expand all
25 struct HttpRequestInfo; 25 struct HttpRequestInfo;
26 class HttpResponseInfo; 26 class HttpResponseInfo;
27 class IOBuffer; 27 class IOBuffer;
28 class SpdySession; 28 class SpdySession;
29 class UploadDataStream; 29 class UploadDataStream;
30 30
31 // The SpdyHttpStream is a HTTP-specific type of stream known to a SpdySession. 31 // The SpdyHttpStream is a HTTP-specific type of stream known to a SpdySession.
32 class NET_EXPORT_PRIVATE SpdyHttpStream : public SpdyStream::Delegate, 32 class NET_EXPORT_PRIVATE SpdyHttpStream : public SpdyStream::Delegate,
33 public HttpStream { 33 public HttpStream {
34 public: 34 public:
35 static const size_t kRequestBodyBufferSize;
35 // |spdy_session| must not be NULL. 36 // |spdy_session| must not be NULL.
36 SpdyHttpStream(const base::WeakPtr<SpdySession>& spdy_session, bool direct); 37 SpdyHttpStream(const base::WeakPtr<SpdySession>& spdy_session, bool direct);
37 ~SpdyHttpStream() override; 38 ~SpdyHttpStream() override;
38 39
39 SpdyStream* stream() { return stream_.get(); } 40 SpdyStream* stream() { return stream_.get(); }
40 41
41 // Cancels any callbacks from being invoked and deletes the stream. 42 // Cancels any callbacks from being invoked and deletes the stream.
42 void Cancel(); 43 void Cancel();
43 44
44 // HttpStream implementation. 45 // HttpStream implementation.
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 bool direct_; 178 bool direct_;
178 179
179 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; 180 base::WeakPtrFactory<SpdyHttpStream> weak_factory_;
180 181
181 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); 182 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream);
182 }; 183 };
183 184
184 } // namespace net 185 } // namespace net
185 186
186 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ 187 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_http_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698