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

Unified Diff: chrome/browser/chromeos/drive/file_system/copy_operation.h

Issue 149413002: drive: Make CopyOperation aware of locally created files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mistakenly called CopyResourceOnServer 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 | « no previous file | chrome/browser/chromeos/drive/file_system/copy_operation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/file_system/copy_operation.h
diff --git a/chrome/browser/chromeos/drive/file_system/copy_operation.h b/chrome/browser/chromeos/drive/file_system/copy_operation.h
index f3e2ea2761d0eb95a2c2ae31e1f7b77719b4933c..269b0c8d4ea2f2a3a7e03fce32b0b5e7f0dbb88a 100644
--- a/chrome/browser/chromeos/drive/file_system/copy_operation.h
+++ b/chrome/browser/chromeos/drive/file_system/copy_operation.h
@@ -74,15 +74,17 @@ class CopyOperation {
const base::FilePath& remote_dest_file_path,
const FileOperationCallback& callback);
- private:
// Params for Copy().
struct CopyParams;
- // Part of Copy(). Called after prepartion is done.
- void CopyAfterPrepare(const CopyParams& params,
- ResourceEntry* src_entry,
- std::string* parent_resource_id,
- FileError error);
+ private:
+ // Part of Copy(). Called after trying to copy locally.
+ void CopyAfterTryToCopyLocally(
+ const CopyParams* params,
+ const std::vector<std::string>* updated_local_ids,
+ const bool* directory_changed,
+ const bool* should_copy_on_server,
+ FileError error);
// Part of TransferFileFromLocalToRemote(). Called after preparation is done.
// |gdoc_resource_id| and |parent_resource_id| is available only if the file
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/file_system/copy_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698