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); |