| 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 #ifndef WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 5 #ifndef WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
| 6 #define WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 6 #define WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "webkit/fileapi/file_system_mount_point_provider.h" | 11 #include "webkit/fileapi/file_system_mount_point_provider.h" |
| 12 #include "webkit/fileapi/fileapi_export.h" | |
| 13 #include "webkit/fileapi/task_runner_bound_observer_list.h" | 12 #include "webkit/fileapi/task_runner_bound_observer_list.h" |
| 13 #include "webkit/storage/webkit_storage_export.h" |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 class SequencedTaskRunner; | 16 class SequencedTaskRunner; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace fileapi { | 19 namespace fileapi { |
| 20 | 20 |
| 21 class LocalFileUtil; | 21 class LocalFileUtil; |
| 22 class FileSystemQuotaUtil; | 22 class FileSystemQuotaUtil; |
| 23 | 23 |
| 24 // This should be only used for testing. | 24 // This should be only used for testing. |
| 25 // This mount point provider uses LocalFileUtil and stores data file | 25 // This mount point provider uses LocalFileUtil and stores data file |
| 26 // under the given directory. | 26 // under the given directory. |
| 27 class FILEAPI_EXPORT_PRIVATE TestMountPointProvider | 27 class WEBKIT_STORAGE_EXPORT_PRIVATE TestMountPointProvider |
| 28 : public FileSystemMountPointProvider { | 28 : public FileSystemMountPointProvider { |
| 29 public: | 29 public: |
| 30 using FileSystemMountPointProvider::ValidateFileSystemCallback; | 30 using FileSystemMountPointProvider::ValidateFileSystemCallback; |
| 31 using FileSystemMountPointProvider::DeleteFileSystemCallback; | 31 using FileSystemMountPointProvider::DeleteFileSystemCallback; |
| 32 | 32 |
| 33 TestMountPointProvider( | 33 TestMountPointProvider( |
| 34 base::SequencedTaskRunner* task_runner, | 34 base::SequencedTaskRunner* task_runner, |
| 35 const FilePath& base_path); | 35 const FilePath& base_path); |
| 36 virtual ~TestMountPointProvider(); | 36 virtual ~TestMountPointProvider(); |
| 37 | 37 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 FilePath base_path_; | 79 FilePath base_path_; |
| 80 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 80 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
| 81 scoped_ptr<LocalFileUtil> local_file_util_; | 81 scoped_ptr<LocalFileUtil> local_file_util_; |
| 82 scoped_ptr<QuotaUtil> quota_util_; | 82 scoped_ptr<QuotaUtil> quota_util_; |
| 83 UpdateObserverList observers_; | 83 UpdateObserverList observers_; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace fileapi | 86 } // namespace fileapi |
| 87 | 87 |
| 88 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 88 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
| OLD | NEW |