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/canned_syncable_file_system.h" | 5 #include "chrome/browser/sync_file_system/local/canned_syncable_file_system.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <iterator> | 9 #include <iterator> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
14 #include "base/files/file.h" | 14 #include "base/files/file.h" |
15 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
16 #include "base/guid.h" | 16 #include "base/guid.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
19 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
20 #include "base/task_runner_util.h" | 20 #include "base/task_runner_util.h" |
21 #include "base/thread_task_runner_handle.h" | 21 #include "base/threading/thread_task_runner_handle.h" |
22 #include "base/trace_event/trace_event.h" | 22 #include "base/trace_event/trace_event.h" |
23 #include "chrome/browser/sync_file_system/file_change.h" | 23 #include "chrome/browser/sync_file_system/file_change.h" |
24 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" | 24 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" |
25 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" | 25 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" |
26 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" | 26 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" |
27 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" | 27 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" |
28 #include "content/public/test/mock_blob_url_request_context.h" | 28 #include "content/public/test/mock_blob_url_request_context.h" |
29 #include "content/public/test/mock_special_storage_policy.h" | 29 #include "content/public/test/mock_special_storage_policy.h" |
30 #include "content/public/test/test_file_system_options.h" | 30 #include "content/public/test/test_file_system_options.h" |
31 #include "storage/browser/blob/shareable_file_reference.h" | 31 #include "storage/browser/blob/shareable_file_reference.h" |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 sync_status_ = status; | 755 sync_status_ = status; |
756 quit_closure.Run(); | 756 quit_closure.Run(); |
757 } | 757 } |
758 | 758 |
759 void CannedSyncableFileSystem::InitializeSyncStatusObserver() { | 759 void CannedSyncableFileSystem::InitializeSyncStatusObserver() { |
760 ASSERT_TRUE(io_task_runner_->RunsTasksOnCurrentThread()); | 760 ASSERT_TRUE(io_task_runner_->RunsTasksOnCurrentThread()); |
761 backend()->sync_context()->sync_status()->AddObserver(this); | 761 backend()->sync_context()->sync_status()->AddObserver(this); |
762 } | 762 } |
763 | 763 |
764 } // namespace sync_file_system | 764 } // namespace sync_file_system |
OLD | NEW |