| 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/fileapi_export.h" |
| 13 #include "webkit/fileapi/file_system_mount_point_provider.h" | 13 #include "webkit/fileapi/file_system_mount_point_provider.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 FileSystemQuotaUtil; | 22 class FileSystemQuotaUtil; |
| 22 | 23 |
| 23 // This should be only used for testing. | 24 // This should be only used for testing. |
| 24 // This mount point provider uses LocalFileUtil and stores data file | 25 // This mount point provider uses LocalFileUtil and stores data file |
| 25 // under the given directory. | 26 // under the given directory. |
| 26 class FILEAPI_EXPORT_PRIVATE TestMountPointProvider | 27 class FILEAPI_EXPORT_PRIVATE TestMountPointProvider |
| 27 : public FileSystemMountPointProvider { | 28 : public FileSystemMountPointProvider { |
| 28 public: | 29 public: |
| 29 typedef FileSystemMountPointProvider::ValidateFileSystemCallback | 30 typedef FileSystemMountPointProvider::ValidateFileSystemCallback |
| 30 ValidateFileSystemCallback; | 31 ValidateFileSystemCallback; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 int64 offset, | 64 int64 offset, |
| 64 FileSystemContext* context) const OVERRIDE; | 65 FileSystemContext* context) const OVERRIDE; |
| 65 virtual FileStreamWriter* CreateFileStreamWriter( | 66 virtual FileStreamWriter* CreateFileStreamWriter( |
| 66 const GURL& url, | 67 const GURL& url, |
| 67 int64 offset, | 68 int64 offset, |
| 68 FileSystemContext* context) const OVERRIDE; | 69 FileSystemContext* context) const OVERRIDE; |
| 69 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 70 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
| 70 | 71 |
| 71 private: | 72 private: |
| 72 FilePath base_path_; | 73 FilePath base_path_; |
| 73 scoped_ptr<FileSystemFileUtil> local_file_util_; | 74 scoped_ptr<LocalFileUtil> local_file_util_; |
| 74 scoped_ptr<FileSystemQuotaUtil> quota_util_; | 75 scoped_ptr<FileSystemQuotaUtil> quota_util_; |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace fileapi | 78 } // namespace fileapi |
| 78 | 79 |
| 79 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 80 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
| OLD | NEW |