OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/drive/file_system/copy_operation.h" | 5 #include "chrome/browser/chromeos/drive/file_system/copy_operation.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/task_runner_util.h" | 10 #include "base/task_runner_util.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 metadata, | 177 metadata, |
178 cache)), | 178 cache)), |
179 download_operation_(new DownloadOperation(blocking_task_runner, | 179 download_operation_(new DownloadOperation(blocking_task_runner, |
180 observer, | 180 observer, |
181 scheduler, | 181 scheduler, |
182 metadata, | 182 metadata, |
183 cache, | 183 cache, |
184 temporary_file_directory)), | 184 temporary_file_directory)), |
185 move_operation_(new MoveOperation(blocking_task_runner, | 185 move_operation_(new MoveOperation(blocking_task_runner, |
186 observer, | 186 observer, |
187 scheduler, | |
188 metadata)), | 187 metadata)), |
189 weak_ptr_factory_(this) { | 188 weak_ptr_factory_(this) { |
190 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 189 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
191 } | 190 } |
192 | 191 |
193 CopyOperation::~CopyOperation() { | 192 CopyOperation::~CopyOperation() { |
194 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 193 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
195 } | 194 } |
196 | 195 |
197 void CopyOperation::Copy(const base::FilePath& src_file_path, | 196 void CopyOperation::Copy(const base::FilePath& src_file_path, |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 } | 588 } |
590 | 589 |
591 DCHECK_EQ(util::GetDriveMyDriveRootPath().value(), | 590 DCHECK_EQ(util::GetDriveMyDriveRootPath().value(), |
592 file_path->DirName().value()) << file_path->value(); | 591 file_path->DirName().value()) << file_path->value(); |
593 | 592 |
594 move_operation_->Move(*file_path, dest_path, false, callback); | 593 move_operation_->Move(*file_path, dest_path, false, callback); |
595 } | 594 } |
596 | 595 |
597 } // namespace file_system | 596 } // namespace file_system |
598 } // namespace drive | 597 } // namespace drive |
OLD | NEW |