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/local_file_sync_service.h" | 5 #include "chrome/browser/sync_file_system/local/local_file_sync_service.h" |
6 | 6 |
7 #include "base/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "base/thread_task_runner_handle.h" | 9 #include "base/thread_task_runner_handle.h" |
10 #include "chrome/browser/extensions/extension_util.h" | 10 #include "chrome/browser/extensions/extension_util.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/sync_file_system/file_change.h" | 12 #include "chrome/browser/sync_file_system/file_change.h" |
13 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" | 13 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" |
14 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" | 14 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" |
15 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" | 15 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" |
16 #include "chrome/browser/sync_file_system/local_change_processor.h" | 16 #include "chrome/browser/sync_file_system/local_change_processor.h" |
17 #include "chrome/browser/sync_file_system/logger.h" | 17 #include "chrome/browser/sync_file_system/logger.h" |
18 #include "chrome/browser/sync_file_system/sync_file_metadata.h" | 18 #include "chrome/browser/sync_file_system/sync_file_metadata.h" |
19 #include "content/public/browser/browser_context.h" | 19 #include "content/public/browser/browser_context.h" |
20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
21 #include "content/public/browser/site_instance.h" | 21 #include "content/public/browser/site_instance.h" |
22 #include "content/public/browser/storage_partition.h" | 22 #include "content/public/browser/storage_partition.h" |
23 #include "extensions/browser/extension_registry.h" | 23 #include "extensions/browser/extension_registry.h" |
24 #include "extensions/common/extension_set.h" | 24 #include "extensions/common/extension_set.h" |
| 25 #include "storage/browser/blob/scoped_file.h" |
25 #include "storage/browser/fileapi/file_system_context.h" | 26 #include "storage/browser/fileapi/file_system_context.h" |
26 #include "storage/browser/fileapi/file_system_url.h" | 27 #include "storage/browser/fileapi/file_system_url.h" |
27 #include "storage/common/blob/scoped_file.h" | |
28 #include "url/gurl.h" | 28 #include "url/gurl.h" |
29 | 29 |
30 using content::BrowserThread; | 30 using content::BrowserThread; |
31 using storage::FileSystemURL; | 31 using storage::FileSystemURL; |
32 | 32 |
33 namespace sync_file_system { | 33 namespace sync_file_system { |
34 | 34 |
35 namespace { | 35 namespace { |
36 | 36 |
37 void PrepareForProcessRemoteChangeCallbackAdapter( | 37 void PrepareForProcessRemoteChangeCallbackAdapter( |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 | 491 |
492 LocalChangeProcessor* LocalFileSyncService::GetLocalChangeProcessor( | 492 LocalChangeProcessor* LocalFileSyncService::GetLocalChangeProcessor( |
493 const FileSystemURL& url) { | 493 const FileSystemURL& url) { |
494 if (!get_local_change_processor_.is_null()) | 494 if (!get_local_change_processor_.is_null()) |
495 return get_local_change_processor_.Run(url.origin()); | 495 return get_local_change_processor_.Run(url.origin()); |
496 DCHECK(local_change_processor_); | 496 DCHECK(local_change_processor_); |
497 return local_change_processor_; | 497 return local_change_processor_; |
498 } | 498 } |
499 | 499 |
500 } // namespace sync_file_system | 500 } // namespace sync_file_system |
OLD | NEW |