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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/move_entry.cc

Issue 389973002: [fsp] Add support for moving files within a provided file system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/file_system_provider/operations/move_entry.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/copy_entry.cc b/chrome/browser/chromeos/file_system_provider/operations/move_entry.cc
similarity index 83%
copy from chrome/browser/chromeos/file_system_provider/operations/copy_entry.cc
copy to chrome/browser/chromeos/file_system_provider/operations/move_entry.cc
index 56fd67d0a43c1c00d0a3687d18657ecc88413400..ec5ec7a146a491691f5a6d85afd50425fea9abb3 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/copy_entry.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/move_entry.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/chromeos/file_system_provider/operations/copy_entry.h"
+#include "chrome/browser/chromeos/file_system_provider/operations/move_entry.h"
#include <string>
@@ -13,7 +13,7 @@ namespace chromeos {
namespace file_system_provider {
namespace operations {
-CopyEntry::CopyEntry(extensions::EventRouter* event_router,
+MoveEntry::MoveEntry(extensions::EventRouter* event_router,
const ProvidedFileSystemInfo& file_system_info,
const base::FilePath& source_path,
const base::FilePath& target_path,
@@ -24,27 +24,27 @@ CopyEntry::CopyEntry(extensions::EventRouter* event_router,
callback_(callback) {
}
-CopyEntry::~CopyEntry() {
+MoveEntry::~MoveEntry() {
}
-bool CopyEntry::Execute(int request_id) {
+bool MoveEntry::Execute(int request_id) {
scoped_ptr<base::DictionaryValue> values(new base::DictionaryValue);
values->SetString("sourcePath", source_path_.AsUTF8Unsafe());
values->SetString("targetPath", target_path_.AsUTF8Unsafe());
return SendEvent(
request_id,
- extensions::api::file_system_provider::OnCopyEntryRequested::kEventName,
+ extensions::api::file_system_provider::OnMoveEntryRequested::kEventName,
values.Pass());
}
-void CopyEntry::OnSuccess(int /* request_id */,
+void MoveEntry::OnSuccess(int /* request_id */,
scoped_ptr<RequestValue> /* result */,
bool has_more) {
callback_.Run(base::File::FILE_OK);
}
-void CopyEntry::OnError(int /* request_id */,
+void MoveEntry::OnError(int /* request_id */,
scoped_ptr<RequestValue> /* result */,
base::File::Error error) {
callback_.Run(error);

Powered by Google App Engine
This is Rietveld 408576698