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

Side by Side Diff: chrome/browser/sync_file_system/local/syncable_file_system_operation.cc

Issue 810403004: [Storage] Blob Storage Refactoring pt 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed copyright Created 5 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 unified diff | Download patch
OLDNEW
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 "
11 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" 11 #include "chrome/browser/sync_file_system/syncable_file_system_util.h"
12 #include "net/url_request/url_request.h" 12 #include "net/url_request/url_request.h"
13 #include "storage/browser/blob/shareable_file_reference.h"
13 #include "storage/browser/fileapi/file_system_context.h" 14 #include "storage/browser/fileapi/file_system_context.h"
14 #include "storage/browser/fileapi/file_system_operation.h" 15 #include "storage/browser/fileapi/file_system_operation.h"
15 #include "storage/browser/fileapi/file_system_operation_context.h" 16 #include "storage/browser/fileapi/file_system_operation_context.h"
16 #include "storage/browser/fileapi/file_system_url.h" 17 #include "storage/browser/fileapi/file_system_url.h"
17 #include "storage/browser/fileapi/file_writer_delegate.h" 18 #include "storage/browser/fileapi/file_writer_delegate.h"
18 #include "storage/common/blob/shareable_file_reference.h"
19 19
20 using storage::FileSystemURL; 20 using storage::FileSystemURL;
21 21
22 namespace sync_file_system { 22 namespace sync_file_system {
23 23
24 namespace { 24 namespace {
25 25
26 void WriteCallbackAdapter( 26 void WriteCallbackAdapter(
27 const SyncableFileSystemOperation::WriteCallback& callback, 27 const SyncableFileSystemOperation::WriteCallback& callback,
28 base::File::Error status) { 28 base::File::Error status) {
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 operation_runner_->OnOperationCompleted(target_paths_); 387 operation_runner_->OnOperationCompleted(target_paths_);
388 callback.Run(result, bytes, complete); 388 callback.Run(result, bytes, complete);
389 } 389 }
390 390
391 void SyncableFileSystemOperation::OnCancelled() { 391 void SyncableFileSystemOperation::OnCancelled() {
392 DCHECK(!completion_callback_.is_null()); 392 DCHECK(!completion_callback_.is_null());
393 completion_callback_.Run(base::File::FILE_ERROR_ABORT); 393 completion_callback_.Run(base::File::FILE_ERROR_ABORT);
394 } 394 }
395 395
396 } // namespace sync_file_system 396 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698