summaryrefslogtreecommitdiffstats
path: root/net/base/upload_data_stream.h
diff options
context:
space:
mode:
authorwtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-05 21:30:51 +0000
committerwtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-05 21:30:51 +0000
commit372d34ad3c42a5b752fecc8def532674dfc64ead (patch)
tree82f6bd55f2e54f5da6e4e19598ea3370a1285170 /net/base/upload_data_stream.h
parent400f538f3a1cd36dca3a20fdac57f2f42e5b4958 (diff)
downloadchromium_src-372d34ad3c42a5b752fecc8def532674dfc64ead.zip
chromium_src-372d34ad3c42a5b752fecc8def532674dfc64ead.tar.gz
chromium_src-372d34ad3c42a5b752fecc8def532674dfc64ead.tar.bz2
Remove the UploadDataStream::Reset method. Instead,
rewind an UploadDataStream by recreating the object. Fix a bug in MockTCPClientSocket::Write. It needs to increment write_index_. Add two DCHECKs to simulate the DCHECKS in SSLClientSocketWin::DoPayloadEncrypt. Add a unit test. R=darin,eroman BUG=4062 Review URL: http://codereview.chromium.org/9384 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4819 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/upload_data_stream.h')
-rw-r--r--net/base/upload_data_stream.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/base/upload_data_stream.h b/net/base/upload_data_stream.h
index 7c2bb6d..c7dc2f1 100644
--- a/net/base/upload_data_stream.h
+++ b/net/base/upload_data_stream.h
@@ -12,7 +12,7 @@ namespace net {
class UploadDataStream {
public:
- UploadDataStream(const UploadData* data);
+ explicit UploadDataStream(const UploadData* data);
~UploadDataStream();
// Returns the stream's buffer and buffer length.
@@ -24,9 +24,6 @@ class UploadDataStream {
// the upload data to be consumed.
void DidConsume(size_t num_bytes);
- // Call to reset the stream position to the beginning.
- void Reset();
-
// Returns the total size of the data stream and the current position.
uint64 size() const { return total_size_; }
uint64 position() const { return current_position_; }