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

Side by Side Diff: chrome/browser/sync_file_system/local/local_file_sync_context.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/local_file_sync_context.h" 5 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
11 #include "base/stl_util.h" 11 #include "base/stl_util.h"
12 #include "base/task_runner_util.h" 12 #include "base/task_runner_util.h"
13 #include "chrome/browser/sync_file_system/file_change.h" 13 #include "chrome/browser/sync_file_system/file_change.h"
14 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" 14 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h"
15 #include "chrome/browser/sync_file_system/local/local_origin_change_observer.h" 15 #include "chrome/browser/sync_file_system/local/local_origin_change_observer.h"
16 #include "chrome/browser/sync_file_system/local/root_delete_helper.h" 16 #include "chrome/browser/sync_file_system/local/root_delete_helper.h"
17 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" 17 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h"
18 #include "chrome/browser/sync_file_system/local/syncable_file_operation_runner.h " 18 #include "chrome/browser/sync_file_system/local/syncable_file_operation_runner.h "
19 #include "chrome/browser/sync_file_system/logger.h" 19 #include "chrome/browser/sync_file_system/logger.h"
20 #include "chrome/browser/sync_file_system/sync_file_metadata.h" 20 #include "chrome/browser/sync_file_system/sync_file_metadata.h"
21 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" 21 #include "chrome/browser/sync_file_system/syncable_file_system_util.h"
22 #include "storage/browser/blob/scoped_file.h"
22 #include "storage/browser/fileapi/file_system_context.h" 23 #include "storage/browser/fileapi/file_system_context.h"
23 #include "storage/browser/fileapi/file_system_file_util.h" 24 #include "storage/browser/fileapi/file_system_file_util.h"
24 #include "storage/browser/fileapi/file_system_operation_context.h" 25 #include "storage/browser/fileapi/file_system_operation_context.h"
25 #include "storage/browser/fileapi/file_system_operation_runner.h" 26 #include "storage/browser/fileapi/file_system_operation_runner.h"
26 #include "storage/common/blob/scoped_file.h"
27 #include "storage/common/fileapi/file_system_util.h" 27 #include "storage/common/fileapi/file_system_util.h"
28 28
29 using storage::FileSystemContext; 29 using storage::FileSystemContext;
30 using storage::FileSystemFileUtil; 30 using storage::FileSystemFileUtil;
31 using storage::FileSystemOperation; 31 using storage::FileSystemOperation;
32 using storage::FileSystemOperationContext; 32 using storage::FileSystemOperationContext;
33 using storage::FileSystemURL; 33 using storage::FileSystemURL;
34 34
35 namespace sync_file_system { 35 namespace sync_file_system {
36 36
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 return; 1071 return;
1072 } 1072 }
1073 1073
1074 FileSystemURL url_for_sync = CreateSyncableFileSystemURLForSync( 1074 FileSystemURL url_for_sync = CreateSyncableFileSystemURLForSync(
1075 file_system_context, dest_url); 1075 file_system_context, dest_url);
1076 file_system_context->operation_runner()->CopyInForeignFile( 1076 file_system_context->operation_runner()->CopyInForeignFile(
1077 local_path, url_for_sync, callback); 1077 local_path, url_for_sync, callback);
1078 } 1078 }
1079 1079
1080 } // namespace sync_file_system 1080 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698