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

Unified Diff: chrome/browser/chromeos/gdata/gdata_upload_file_info.cc

Issue 10919093: Rename GDataUplaoder to DriveUploader (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix after rebase Created 8 years, 3 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
Index: chrome/browser/chromeos/gdata/gdata_upload_file_info.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_upload_file_info.cc b/chrome/browser/chromeos/gdata/gdata_upload_file_info.cc
deleted file mode 100644
index f9b7d093e2110de658acd7b572491bb492785114..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/gdata/gdata_upload_file_info.cc
+++ /dev/null
@@ -1,50 +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 "chrome/browser/chromeos/gdata/gdata_upload_file_info.h"
-
-#include "base/string_number_conversions.h"
-#include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h"
-
-namespace gdata {
-
-UploadFileInfo::UploadFileInfo()
- : upload_id(-1),
- file_size(0),
- content_length(0),
- upload_mode(UPLOAD_INVALID),
- file_stream(NULL),
- buf_len(0),
- start_range(0),
- end_range(-1),
- all_bytes_present(false),
- upload_paused(false),
- should_retry_file_open(false),
- num_file_open_tries(0) {
-}
-
-UploadFileInfo::~UploadFileInfo() {
- // The file stream is closed by the destructor asynchronously.
- if (file_stream) {
- delete file_stream;
- file_stream = NULL;
- }
-}
-
-int64 UploadFileInfo::SizeRemaining() const {
- DCHECK(file_size > end_range);
- // Note that uploaded_bytes = end_range + 1;
- return file_size - end_range - 1;
-}
-
-std::string UploadFileInfo::DebugString() const {
- return "title=[" + title +
- "], file_path=[" + file_path.value() +
- "], content_type=[" + content_type +
- "], file_size=[" + base::UintToString(file_size) +
- "], gdata_path=[" + gdata_path.value() +
- "]";
-}
-
-} // namespace gdata
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_upload_file_info.h ('k') | chrome/browser/chromeos/gdata/gdata_uploader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698