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

Side by Side Diff: net/base/upload_data_stream.cc

Issue 115870: Reduce header dependencies in net/ (Closed)
Patch Set: Created 11 years, 6 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/base/upload_data_stream.h" 5 #include "net/base/upload_data_stream.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/base/io_buffer.h"
8 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
9 10
10 namespace net { 11 namespace net {
11 12
12 UploadDataStream::UploadDataStream(const UploadData* data) 13 UploadDataStream::UploadDataStream(const UploadData* data)
13 : data_(data), 14 : data_(data),
14 buf_(new IOBuffer(kBufSize)), 15 buf_(new IOBuffer(kBufSize)),
15 buf_len_(0), 16 buf_len_(0),
16 next_element_(data->elements().begin()), 17 next_element_(data->elements().begin()),
17 next_element_offset_(0), 18 next_element_offset_(0),
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 101
101 if (advance_to_next_element) { 102 if (advance_to_next_element) {
102 ++next_element_; 103 ++next_element_;
103 next_element_offset_ = 0; 104 next_element_offset_ = 0;
104 next_element_stream_.Close(); 105 next_element_stream_.Close();
105 } 106 }
106 } 107 }
107 } 108 }
108 109
109 } // namespace net 110 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698