| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/sync_file_system/local/syncable_file_system_operation.h
" | 5 #include "chrome/browser/sync_file_system/local/syncable_file_system_operation.h
" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" | 8 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" |
| 9 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" | 9 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" |
| 10 #include "chrome/browser/sync_file_system/local/syncable_file_operation_runner.h
" | 10 #include "chrome/browser/sync_file_system/local/syncable_file_operation_runner.h
" |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 const base::Time& last_access_time, | 267 const base::Time& last_access_time, |
| 268 const base::Time& last_modified_time, | 268 const base::Time& last_modified_time, |
| 269 const StatusCallback& callback) { | 269 const StatusCallback& callback) { |
| 270 DCHECK(CalledOnValidThread()); | 270 DCHECK(CalledOnValidThread()); |
| 271 impl_->TouchFile(url, last_access_time, last_modified_time, callback); | 271 impl_->TouchFile(url, last_access_time, last_modified_time, callback); |
| 272 } | 272 } |
| 273 | 273 |
| 274 void SyncableFileSystemOperation::OpenFile( | 274 void SyncableFileSystemOperation::OpenFile( |
| 275 const FileSystemURL& url, | 275 const FileSystemURL& url, |
| 276 int file_flags, | 276 int file_flags, |
| 277 base::ProcessHandle peer_handle, | |
| 278 const OpenFileCallback& callback) { | 277 const OpenFileCallback& callback) { |
| 279 NOTREACHED(); | 278 NOTREACHED(); |
| 280 } | 279 } |
| 281 | 280 |
| 282 void SyncableFileSystemOperation::Cancel( | 281 void SyncableFileSystemOperation::Cancel( |
| 283 const StatusCallback& cancel_callback) { | 282 const StatusCallback& cancel_callback) { |
| 284 DCHECK(CalledOnValidThread()); | 283 DCHECK(CalledOnValidThread()); |
| 285 impl_->Cancel(cancel_callback); | 284 impl_->Cancel(cancel_callback); |
| 286 } | 285 } |
| 287 | 286 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 operation_runner_->OnOperationCompleted(target_paths_); | 395 operation_runner_->OnOperationCompleted(target_paths_); |
| 397 callback.Run(result, bytes, complete); | 396 callback.Run(result, bytes, complete); |
| 398 } | 397 } |
| 399 | 398 |
| 400 void SyncableFileSystemOperation::OnCancelled() { | 399 void SyncableFileSystemOperation::OnCancelled() { |
| 401 DCHECK(!completion_callback_.is_null()); | 400 DCHECK(!completion_callback_.is_null()); |
| 402 completion_callback_.Run(base::PLATFORM_FILE_ERROR_ABORT); | 401 completion_callback_.Run(base::PLATFORM_FILE_ERROR_ABORT); |
| 403 } | 402 } |
| 404 | 403 |
| 405 } // namespace sync_file_system | 404 } // namespace sync_file_system |
| OLD | NEW |