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/browser/fileapi/test_mount_point_provider.h" | 5 #include "webkit/browser/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_observers.h" | 14 #include "webkit/browser/fileapi/file_observers.h" |
15 #include "webkit/browser/fileapi/file_system_file_stream_reader.h" | 15 #include "webkit/browser/fileapi/file_system_file_stream_reader.h" |
16 #include "webkit/browser/fileapi/file_system_operation_context.h" | 16 #include "webkit/browser/fileapi/file_system_operation_context.h" |
17 #include "webkit/browser/fileapi/file_system_quota_util.h" | 17 #include "webkit/browser/fileapi/file_system_quota_util.h" |
18 #include "webkit/browser/fileapi/local_file_system_operation.h" | 18 #include "webkit/browser/fileapi/local_file_system_operation.h" |
19 #include "webkit/browser/fileapi/local_file_util.h" | 19 #include "webkit/browser/fileapi/local_file_util.h" |
20 #include "webkit/browser/fileapi/native_file_util.h" | 20 #include "webkit/browser/fileapi/native_file_util.h" |
21 #include "webkit/browser/fileapi/sandbox_file_stream_writer.h" | 21 #include "webkit/browser/fileapi/sandbox_file_stream_writer.h" |
| 22 #include "webkit/browser/quota/quota_manager.h" |
22 #include "webkit/common/fileapi/file_system_util.h" | 23 #include "webkit/common/fileapi/file_system_util.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: |
32 QuotaUtil() : usage_(0) {} | 32 QuotaUtil() : usage_(0) {} |
33 virtual ~QuotaUtil() {} | 33 virtual ~QuotaUtil() {} |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 NOTREACHED(); | 181 NOTREACHED(); |
182 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); | 182 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); |
183 } | 183 } |
184 | 184 |
185 const UpdateObserverList* TestMountPointProvider::GetUpdateObservers( | 185 const UpdateObserverList* TestMountPointProvider::GetUpdateObservers( |
186 FileSystemType type) const { | 186 FileSystemType type) const { |
187 return &observers_; | 187 return &observers_; |
188 } | 188 } |
189 | 189 |
190 } // namespace fileapi | 190 } // namespace fileapi |
OLD | NEW |