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

Side by Side Diff: net/http/http_network_transaction.cc

Issue 2227503003: Add net log to UploadDataStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 4 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/base/upload_data_stream.cc ('k') | net/http/http_stream_parser_unittest.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 #include "net/http/http_network_transaction.h" 5 #include "net/http/http_network_transaction.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 header_creation_time, 1067 header_creation_time,
1068 base::TimeDelta::FromMilliseconds(1), 1068 base::TimeDelta::FromMilliseconds(1),
1069 base::TimeDelta::FromMinutes(1), 50); 1069 base::TimeDelta::FromMinutes(1), 50);
1070 return OK; 1070 return OK;
1071 } 1071 }
1072 1072
1073 int HttpNetworkTransaction::DoInitRequestBody() { 1073 int HttpNetworkTransaction::DoInitRequestBody() {
1074 next_state_ = STATE_INIT_REQUEST_BODY_COMPLETE; 1074 next_state_ = STATE_INIT_REQUEST_BODY_COMPLETE;
1075 int rv = OK; 1075 int rv = OK;
1076 if (request_->upload_data_stream) 1076 if (request_->upload_data_stream)
1077 rv = request_->upload_data_stream->Init(io_callback_); 1077 rv = request_->upload_data_stream->Init(io_callback_, net_log_);
1078 return rv; 1078 return rv;
1079 } 1079 }
1080 1080
1081 int HttpNetworkTransaction::DoInitRequestBodyComplete(int result) { 1081 int HttpNetworkTransaction::DoInitRequestBodyComplete(int result) {
1082 if (result == OK) 1082 if (result == OK)
1083 next_state_ = STATE_BUILD_REQUEST; 1083 next_state_ = STATE_BUILD_REQUEST;
1084 return result; 1084 return result;
1085 } 1085 }
1086 1086
1087 int HttpNetworkTransaction::DoBuildRequest() { 1087 int HttpNetworkTransaction::DoBuildRequest() {
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 DCHECK(stream_request_); 1669 DCHECK(stream_request_);
1670 1670
1671 // Since the transaction can restart with auth credentials, it may create a 1671 // Since the transaction can restart with auth credentials, it may create a
1672 // stream more than once. Accumulate all of the connection attempts across 1672 // stream more than once. Accumulate all of the connection attempts across
1673 // those streams by appending them to the vector: 1673 // those streams by appending them to the vector:
1674 for (const auto& attempt : stream_request_->connection_attempts()) 1674 for (const auto& attempt : stream_request_->connection_attempts())
1675 connection_attempts_.push_back(attempt); 1675 connection_attempts_.push_back(attempt);
1676 } 1676 }
1677 1677
1678 } // namespace net 1678 } // namespace net
OLDNEW
« no previous file with comments | « net/base/upload_data_stream.cc ('k') | net/http/http_stream_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698