| 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/files/file_path.h" | 8 #include "base/files/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" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // under the given directory. | 27 // under the given directory. |
| 28 class WEBKIT_STORAGE_EXPORT_PRIVATE TestMountPointProvider | 28 class WEBKIT_STORAGE_EXPORT_PRIVATE TestMountPointProvider |
| 29 : public FileSystemMountPointProvider { | 29 : public FileSystemMountPointProvider { |
| 30 public: | 30 public: |
| 31 TestMountPointProvider( | 31 TestMountPointProvider( |
| 32 base::SequencedTaskRunner* task_runner, | 32 base::SequencedTaskRunner* task_runner, |
| 33 const base::FilePath& base_path); | 33 const base::FilePath& base_path); |
| 34 virtual ~TestMountPointProvider(); | 34 virtual ~TestMountPointProvider(); |
| 35 | 35 |
| 36 // FileSystemMountPointProvider implementation. | 36 // FileSystemMountPointProvider implementation. |
| 37 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; |
| 37 virtual void ValidateFileSystemRoot( | 38 virtual void ValidateFileSystemRoot( |
| 38 const GURL& origin_url, | 39 const GURL& origin_url, |
| 39 FileSystemType type, | 40 FileSystemType type, |
| 40 bool create, | 41 bool create, |
| 41 const ValidateFileSystemCallback& callback) OVERRIDE; | 42 const ValidateFileSystemCallback& callback) OVERRIDE; |
| 42 virtual base::FilePath GetFileSystemRootPathOnFileThread( | 43 virtual base::FilePath GetFileSystemRootPathOnFileThread( |
| 43 const FileSystemURL& url, | 44 const FileSystemURL& url, |
| 44 bool create) OVERRIDE; | 45 bool create) OVERRIDE; |
| 45 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; | 46 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; |
| 46 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; | 47 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 base::FilePath base_path_; | 82 base::FilePath base_path_; |
| 82 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 83 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
| 83 scoped_ptr<AsyncFileUtilAdapter> local_file_util_; | 84 scoped_ptr<AsyncFileUtilAdapter> local_file_util_; |
| 84 scoped_ptr<QuotaUtil> quota_util_; | 85 scoped_ptr<QuotaUtil> quota_util_; |
| 85 UpdateObserverList observers_; | 86 UpdateObserverList observers_; |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace fileapi | 89 } // namespace fileapi |
| 89 | 90 |
| 90 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 91 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
| OLD | NEW |