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/root_delete_helper.h" | 5 #include "chrome/browser/sync_file_system/local/root_delete_helper.h" |
6 | 6 |
7 #include "base/sequenced_task_runner.h" | 7 #include "base/sequenced_task_runner.h" |
8 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" | 8 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" |
9 #include "chrome/browser/sync_file_system/local/local_file_sync_status.h" | 9 #include "chrome/browser/sync_file_system/local/local_file_sync_status.h" |
10 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" | 10 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" |
11 #include "chrome/browser/sync_file_system/logger.h" | 11 #include "chrome/browser/sync_file_system/logger.h" |
12 #include "chrome/browser/sync_file_system/sync_callbacks.h" | 12 #include "chrome/browser/sync_file_system/sync_callbacks.h" |
| 13 #include "storage/browser/fileapi/file_system_context.h" |
| 14 #include "storage/browser/fileapi/file_system_url.h" |
| 15 #include "storage/browser/fileapi/sandbox_file_system_backend_delegate.h" |
13 #include "storage/common/fileapi/file_system_util.h" | 16 #include "storage/common/fileapi/file_system_util.h" |
14 #include "webkit/browser/fileapi/file_system_context.h" | |
15 #include "webkit/browser/fileapi/file_system_url.h" | |
16 #include "webkit/browser/fileapi/sandbox_file_system_backend_delegate.h" | |
17 | 17 |
18 namespace sync_file_system { | 18 namespace sync_file_system { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // This runs on FileSystemContext's default_file_task_runner. | 22 // This runs on FileSystemContext's default_file_task_runner. |
23 void ResetFileChangeTracker(storage::FileSystemContext* file_system_context, | 23 void ResetFileChangeTracker(storage::FileSystemContext* file_system_context, |
24 const storage::FileSystemURL& url) { | 24 const storage::FileSystemURL& url) { |
25 DCHECK(file_system_context->default_file_task_runner()-> | 25 DCHECK(file_system_context->default_file_task_runner()-> |
26 RunsTasksOnCurrentThread()); | 26 RunsTasksOnCurrentThread()); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 } | 97 } |
98 | 98 |
99 void RootDeleteHelper::DidOpenFileSystem(const GURL& /* root */, | 99 void RootDeleteHelper::DidOpenFileSystem(const GURL& /* root */, |
100 const std::string& /* name */, | 100 const std::string& /* name */, |
101 base::File::Error error) { | 101 base::File::Error error) { |
102 FileStatusCallback callback = callback_; | 102 FileStatusCallback callback = callback_; |
103 callback.Run(error); | 103 callback.Run(error); |
104 } | 104 } |
105 | 105 |
106 } // namespace sync_file_system | 106 } // namespace sync_file_system |
OLD | NEW |