| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/fileapi/test_mount_point_provider.h" | 5 #include "webkit/fileapi/test_mount_point_provider.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/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/sequenced_task_runner.h" | 12 #include "base/sequenced_task_runner.h" |
| 13 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" | 13 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" |
| 14 #include "webkit/browser/fileapi/file_system_quota_util.h" | 14 #include "webkit/browser/fileapi/file_system_quota_util.h" |
| 15 #include "webkit/browser/fileapi/local_file_util.h" | 15 #include "webkit/browser/fileapi/local_file_util.h" |
| 16 #include "webkit/browser/fileapi/native_file_util.h" | 16 #include "webkit/browser/fileapi/native_file_util.h" |
| 17 #include "webkit/browser/fileapi/sandbox_file_stream_writer.h" | 17 #include "webkit/browser/fileapi/sandbox_file_stream_writer.h" |
| 18 #include "webkit/common/fileapi/file_system_util.h" |
| 18 #include "webkit/fileapi/file_observers.h" | 19 #include "webkit/fileapi/file_observers.h" |
| 19 #include "webkit/fileapi/file_system_file_stream_reader.h" | 20 #include "webkit/fileapi/file_system_file_stream_reader.h" |
| 20 #include "webkit/fileapi/file_system_operation_context.h" | 21 #include "webkit/fileapi/file_system_operation_context.h" |
| 21 #include "webkit/fileapi/file_system_util.h" | |
| 22 #include "webkit/fileapi/local_file_system_operation.h" | 22 #include "webkit/fileapi/local_file_system_operation.h" |
| 23 #include "webkit/quota/quota_manager.h" | 23 #include "webkit/quota/quota_manager.h" |
| 24 | 24 |
| 25 namespace fileapi { | 25 namespace fileapi { |
| 26 | 26 |
| 27 // This only supports single origin. | 27 // This only supports single origin. |
| 28 class TestMountPointProvider::QuotaUtil | 28 class TestMountPointProvider::QuotaUtil |
| 29 : public FileSystemQuotaUtil, | 29 : public FileSystemQuotaUtil, |
| 30 public FileUpdateObserver { | 30 public FileUpdateObserver { |
| 31 public: | 31 public: |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 NOTREACHED(); | 194 NOTREACHED(); |
| 195 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); | 195 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); |
| 196 } | 196 } |
| 197 | 197 |
| 198 const UpdateObserverList* TestMountPointProvider::GetUpdateObservers( | 198 const UpdateObserverList* TestMountPointProvider::GetUpdateObservers( |
| 199 FileSystemType type) const { | 199 FileSystemType type) const { |
| 200 return &observers_; | 200 return &observers_; |
| 201 } | 201 } |
| 202 | 202 |
| 203 } // namespace fileapi | 203 } // namespace fileapi |
| OLD | NEW |