| 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 "content/public/test/test_file_system_backend.h" | 5 #include "content/public/test/test_file_system_backend.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/files/file.h" | 11 #include "base/files/file.h" |
| 12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "base/sequenced_task_runner.h" | 15 #include "base/sequenced_task_runner.h" |
| 16 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
| 17 #include "storage/browser/blob/file_stream_reader.h" |
| 18 #include "storage/browser/fileapi/copy_or_move_file_validator.h" |
| 19 #include "storage/browser/fileapi/file_observers.h" |
| 20 #include "storage/browser/fileapi/file_system_operation.h" |
| 21 #include "storage/browser/fileapi/file_system_operation_context.h" |
| 22 #include "storage/browser/fileapi/file_system_quota_util.h" |
| 23 #include "storage/browser/fileapi/local_file_util.h" |
| 24 #include "storage/browser/fileapi/native_file_util.h" |
| 25 #include "storage/browser/fileapi/quota/quota_reservation.h" |
| 26 #include "storage/browser/fileapi/sandbox_file_stream_writer.h" |
| 27 #include "storage/browser/fileapi/watcher_manager.h" |
| 28 #include "storage/browser/quota/quota_manager.h" |
| 17 #include "storage/common/fileapi/file_system_util.h" | 29 #include "storage/common/fileapi/file_system_util.h" |
| 18 #include "webkit/browser/blob/file_stream_reader.h" | |
| 19 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" | |
| 20 #include "webkit/browser/fileapi/file_observers.h" | |
| 21 #include "webkit/browser/fileapi/file_system_operation.h" | |
| 22 #include "webkit/browser/fileapi/file_system_operation_context.h" | |
| 23 #include "webkit/browser/fileapi/file_system_quota_util.h" | |
| 24 #include "webkit/browser/fileapi/local_file_util.h" | |
| 25 #include "webkit/browser/fileapi/native_file_util.h" | |
| 26 #include "webkit/browser/fileapi/quota/quota_reservation.h" | |
| 27 #include "webkit/browser/fileapi/sandbox_file_stream_writer.h" | |
| 28 #include "webkit/browser/fileapi/watcher_manager.h" | |
| 29 #include "webkit/browser/quota/quota_manager.h" | |
| 30 | 30 |
| 31 using storage::FileSystemContext; | 31 using storage::FileSystemContext; |
| 32 using storage::FileSystemOperation; | 32 using storage::FileSystemOperation; |
| 33 using storage::FileSystemOperationContext; | 33 using storage::FileSystemOperationContext; |
| 34 using storage::FileSystemURL; | 34 using storage::FileSystemURL; |
| 35 | 35 |
| 36 namespace content { | 36 namespace content { |
| 37 | 37 |
| 38 namespace { | 38 namespace { |
| 39 | 39 |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 return quota_util_->GetUpdateObservers(type); | 368 return quota_util_->GetUpdateObservers(type); |
| 369 } | 369 } |
| 370 | 370 |
| 371 void TestFileSystemBackend::AddFileChangeObserver( | 371 void TestFileSystemBackend::AddFileChangeObserver( |
| 372 storage::FileChangeObserver* observer) { | 372 storage::FileChangeObserver* observer) { |
| 373 quota_util_->AddFileChangeObserver( | 373 quota_util_->AddFileChangeObserver( |
| 374 storage::kFileSystemTypeTest, observer, quota_util_->task_runner()); | 374 storage::kFileSystemTypeTest, observer, quota_util_->task_runner()); |
| 375 } | 375 } |
| 376 | 376 |
| 377 } // namespace content | 377 } // namespace content |
| OLD | NEW |