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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "webkit/fileapi/fileapi_export.h" |
12 #include "webkit/fileapi/file_system_mount_point_provider.h" | 13 #include "webkit/fileapi/file_system_mount_point_provider.h" |
13 | 14 |
14 namespace base { | 15 namespace base { |
15 class SequencedTaskRunner; | 16 class SequencedTaskRunner; |
16 } | 17 } |
17 | 18 |
18 namespace fileapi { | 19 namespace fileapi { |
19 | 20 |
20 class FileSystemQuotaUtil; | 21 class FileSystemQuotaUtil; |
21 | 22 |
22 // This should be only used for testing. | 23 // This should be only used for testing. |
23 // This mount point provider uses LocalFileUtil and stores data file | 24 // This mount point provider uses LocalFileUtil and stores data file |
24 // under the given directory. | 25 // under the given directory. |
25 class TestMountPointProvider : public FileSystemMountPointProvider { | 26 class FILEAPI_EXPORT_PRIVATE TestMountPointProvider |
| 27 : public FileSystemMountPointProvider { |
26 public: | 28 public: |
27 typedef FileSystemMountPointProvider::ValidateFileSystemCallback | 29 typedef FileSystemMountPointProvider::ValidateFileSystemCallback |
28 ValidateFileSystemCallback; | 30 ValidateFileSystemCallback; |
29 | 31 |
30 TestMountPointProvider( | 32 TestMountPointProvider( |
31 base::SequencedTaskRunner* task_runner, | 33 base::SequencedTaskRunner* task_runner, |
32 const FilePath& base_path); | 34 const FilePath& base_path); |
33 virtual ~TestMountPointProvider(); | 35 virtual ~TestMountPointProvider(); |
34 | 36 |
35 // FileSystemMountPointProvider implementation. | 37 // FileSystemMountPointProvider implementation. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 70 |
69 private: | 71 private: |
70 FilePath base_path_; | 72 FilePath base_path_; |
71 scoped_ptr<FileSystemFileUtil> local_file_util_; | 73 scoped_ptr<FileSystemFileUtil> local_file_util_; |
72 scoped_ptr<FileSystemQuotaUtil> quota_util_; | 74 scoped_ptr<FileSystemQuotaUtil> quota_util_; |
73 }; | 75 }; |
74 | 76 |
75 } // namespace fileapi | 77 } // namespace fileapi |
76 | 78 |
77 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 79 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
OLD | NEW |