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

Unified Diff: net/base/upload_data.cc

Issue 140733002: Revert 244982 "Revert 244857 "net: Remove classes which were use..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: rebase Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/upload_data.h ('k') | net/base/upload_file_element_reader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/upload_data.cc
diff --git a/net/base/upload_data.cc b/net/base/upload_data.cc
deleted file mode 100644
index 48cb2020f985d514f3340c1db9e94dcf34ef92e6..0000000000000000000000000000000000000000
--- a/net/base/upload_data.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/base/upload_data.h"
-
-#include "base/logging.h"
-
-namespace net {
-
-UploadData::UploadData()
- : identifier_(0),
- is_chunked_(false),
- last_chunk_appended_(false) {
-}
-
-void UploadData::AppendBytes(const char* bytes, int bytes_len) {
- DCHECK(!is_chunked_);
- if (bytes_len > 0) {
- elements_.push_back(new UploadElement());
- elements_.back()->SetToBytes(bytes, bytes_len);
- }
-}
-
-void UploadData::AppendFileRange(const base::FilePath& file_path,
- uint64 offset, uint64 length,
- const base::Time& expected_modification_time) {
- DCHECK(!is_chunked_);
- elements_.push_back(new UploadElement());
- elements_.back()->SetToFilePathRange(file_path, offset, length,
- expected_modification_time);
-}
-
-UploadData::~UploadData() {
-}
-
-} // namespace net
« no previous file with comments | « net/base/upload_data.h ('k') | net/base/upload_file_element_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698