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 <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/guid.h" | 13 #include "base/guid.h" |
14 #include "base/message_loop/message_loop_proxy.h" | 14 #include "base/message_loop/message_loop_proxy.h" |
15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/task_runner_util.h" | 17 #include "base/task_runner_util.h" |
18 #include "chrome/browser/sync_file_system/file_change.h" | 18 #include "chrome/browser/sync_file_system/file_change.h" |
19 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" | 19 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" |
20 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" | 20 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" |
21 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" | 21 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" |
22 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" | 22 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" |
| 23 #include "content/public/test/test_file_system_options.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
24 #include "webkit/browser/blob/mock_blob_url_request_context.h" | 25 #include "webkit/browser/blob/mock_blob_url_request_context.h" |
25 #include "webkit/browser/fileapi/external_mount_points.h" | 26 #include "webkit/browser/fileapi/external_mount_points.h" |
26 #include "webkit/browser/fileapi/file_system_backend.h" | 27 #include "webkit/browser/fileapi/file_system_backend.h" |
27 #include "webkit/browser/fileapi/file_system_context.h" | 28 #include "webkit/browser/fileapi/file_system_context.h" |
28 #include "webkit/browser/fileapi/file_system_operation_context.h" | 29 #include "webkit/browser/fileapi/file_system_operation_context.h" |
29 #include "webkit/browser/fileapi/file_system_operation_runner.h" | 30 #include "webkit/browser/fileapi/file_system_operation_runner.h" |
30 #include "webkit/browser/fileapi/mock_file_system_options.h" | |
31 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" | 31 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" |
32 #include "webkit/browser/quota/mock_special_storage_policy.h" | 32 #include "webkit/browser/quota/mock_special_storage_policy.h" |
33 #include "webkit/browser/quota/quota_manager.h" | 33 #include "webkit/browser/quota/quota_manager.h" |
34 #include "webkit/common/blob/shareable_file_reference.h" | 34 #include "webkit/common/blob/shareable_file_reference.h" |
35 | 35 |
36 using base::PlatformFileError; | 36 using base::PlatformFileError; |
37 using fileapi::FileSystemContext; | 37 using fileapi::FileSystemContext; |
38 using fileapi::FileSystemOperationRunner; | 38 using fileapi::FileSystemOperationRunner; |
39 using fileapi::FileSystemURL; | 39 using fileapi::FileSystemURL; |
40 using fileapi::FileSystemURLSet; | 40 using fileapi::FileSystemURLSet; |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 sync_status_ = status; | 694 sync_status_ = status; |
695 base::MessageLoop::current()->Quit(); | 695 base::MessageLoop::current()->Quit(); |
696 } | 696 } |
697 | 697 |
698 void CannedSyncableFileSystem::InitializeSyncStatusObserver() { | 698 void CannedSyncableFileSystem::InitializeSyncStatusObserver() { |
699 ASSERT_TRUE(io_task_runner_->RunsTasksOnCurrentThread()); | 699 ASSERT_TRUE(io_task_runner_->RunsTasksOnCurrentThread()); |
700 backend()->sync_context()->sync_status()->AddObserver(this); | 700 backend()->sync_context()->sync_status()->AddObserver(this); |
701 } | 701 } |
702 | 702 |
703 } // namespace sync_file_system | 703 } // namespace sync_file_system |
OLD | NEW |