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

Side by Side Diff: net/quic/chromium/quic_http_stream.h

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: REBASE Created 4 years, 3 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 #ifndef NET_QUIC_QUIC_HTTP_STREAM_H_ 5 #ifndef NET_QUIC_QUIC_HTTP_STREAM_H_
6 #define NET_QUIC_QUIC_HTTP_STREAM_H_ 6 #define NET_QUIC_QUIC_HTTP_STREAM_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 26 matching lines...) Expand all
37 public HttpStream { 37 public HttpStream {
38 public: 38 public:
39 explicit QuicHttpStream( 39 explicit QuicHttpStream(
40 const base::WeakPtr<QuicChromiumClientSession>& session); 40 const base::WeakPtr<QuicChromiumClientSession>& session);
41 41
42 ~QuicHttpStream() override; 42 ~QuicHttpStream() override;
43 43
44 // HttpStream implementation. 44 // HttpStream implementation.
45 int InitializeStream(const HttpRequestInfo* request_info, 45 int InitializeStream(const HttpRequestInfo* request_info,
46 RequestPriority priority, 46 RequestPriority priority,
47 const BoundNetLog& net_log, 47 const NetLogWithSource& net_log,
48 const CompletionCallback& callback) override; 48 const CompletionCallback& callback) override;
49 int SendRequest(const HttpRequestHeaders& request_headers, 49 int SendRequest(const HttpRequestHeaders& request_headers,
50 HttpResponseInfo* response, 50 HttpResponseInfo* response,
51 const CompletionCallback& callback) override; 51 const CompletionCallback& callback) override;
52 int ReadResponseHeaders(const CompletionCallback& callback) override; 52 int ReadResponseHeaders(const CompletionCallback& callback) override;
53 int ReadResponseBody(IOBuffer* buf, 53 int ReadResponseBody(IOBuffer* buf,
54 int buf_len, 54 int buf_len,
55 const CompletionCallback& callback) override; 55 const CompletionCallback& callback) override;
56 void Close(bool not_reusable) override; 56 void Close(bool not_reusable) override;
57 HttpStream* RenewStreamForAuth() override; 57 HttpStream* RenewStreamForAuth() override;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 // Caller provided buffer for the ReadResponseBody() response. 191 // Caller provided buffer for the ReadResponseBody() response.
192 scoped_refptr<IOBuffer> user_buffer_; 192 scoped_refptr<IOBuffer> user_buffer_;
193 int user_buffer_len_; 193 int user_buffer_len_;
194 194
195 // Temporary buffer used to read the request body from UploadDataStream. 195 // Temporary buffer used to read the request body from UploadDataStream.
196 scoped_refptr<IOBufferWithSize> raw_request_body_buf_; 196 scoped_refptr<IOBufferWithSize> raw_request_body_buf_;
197 // Wraps raw_request_body_buf_ to read the remaining data progressively. 197 // Wraps raw_request_body_buf_ to read the remaining data progressively.
198 scoped_refptr<DrainableIOBuffer> request_body_buf_; 198 scoped_refptr<DrainableIOBuffer> request_body_buf_;
199 199
200 BoundNetLog stream_net_log_; 200 NetLogWithSource stream_net_log_;
201 201
202 QuicErrorCode quic_connection_error_; 202 QuicErrorCode quic_connection_error_;
203 203
204 // SSLInfo from the underlying QuicSession. 204 // SSLInfo from the underlying QuicSession.
205 SSLInfo ssl_info_; 205 SSLInfo ssl_info_;
206 206
207 // True when this stream receives a go away from server due to port migration. 207 // True when this stream receives a go away from server due to port migration.
208 bool port_migration_detected_; 208 bool port_migration_detected_;
209 209
210 bool found_promise_; 210 bool found_promise_;
(...skipping 10 matching lines...) Expand all
221 LoadTimingInfo::ConnectTiming connect_timing_; 221 LoadTimingInfo::ConnectTiming connect_timing_;
222 222
223 base::WeakPtrFactory<QuicHttpStream> weak_factory_; 223 base::WeakPtrFactory<QuicHttpStream> weak_factory_;
224 224
225 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); 225 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream);
226 }; 226 };
227 227
228 } // namespace net 228 } // namespace net
229 229
230 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ 230 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698