|
net: Move data reading functionalities from UploadElement to UploadElementReader
Add a new interface net::UploadElementReader and its implementations for bytes and file.
Rewrite UploadDataStream using UploadElementReader.
UploadElement::SetContentLength is replaced with UploadFileElementReader::ScopedOverridingContentLengthForTests.
HttpNetworkTransactionSpdy(2|3)Test.UnreadableUploadFileAfterAuthRestart is bit modified since a new FileStream is created every time when UploadDataStream is initialized.
BUG= 145329
TEST=net_unittests
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=156113
Total comments: 4
Total comments: 2
Total comments: 16
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+615 lines, -267 lines) |
Patch |
|
A |
net/base/upload_bytes_element_reader.h
|
View
|
1
2
3
4
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
|
A |
net/base/upload_bytes_element_reader.cc
|
View
|
1
2
3
4
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
|
A |
net/base/upload_bytes_element_reader_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+61 lines, -0 lines |
0 comments
|
Download
|
|
M |
net/base/upload_data_stream.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
net/base/upload_data_stream.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+37 lines, -46 lines |
0 comments
|
Download
|
|
M |
net/base/upload_data_stream_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
net/base/upload_element.h
|
View
|
1
2
|
3 chunks |
+0 lines, -57 lines |
0 comments
|
Download
|
|
M |
net/base/upload_element.cc
|
View
|
1
2
|
1 chunk |
+1 line, -156 lines |
0 comments
|
Download
|
|
A |
net/base/upload_element_reader.h
|
View
|
1
2
3
4
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
|
A |
net/base/upload_element_reader.cc
|
View
|
1
2
3
4
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
|
A |
net/base/upload_file_element_reader.h
|
View
|
1
2
3
4
5
|
1 chunk |
+63 lines, -0 lines |
0 comments
|
Download
|
|
A |
net/base/upload_file_element_reader.cc
|
View
|
1
2
3
4
|
1 chunk |
+142 lines, -0 lines |
0 comments
|
Download
|
|
A |
net/base/upload_file_element_reader_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+110 lines, -0 lines |
0 comments
|
Download
|
|
M |
net/http/http_network_transaction_spdy2_unittest.cc
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
net/http/http_network_transaction_spdy3_unittest.cc
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
net/net.gyp
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
Total messages: 17 (0 generated)
|