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" |
(...skipping 27 matching lines...) Expand all Loading... |
38 virtual void ValidateFileSystemRoot( | 38 virtual void ValidateFileSystemRoot( |
39 const GURL& origin_url, | 39 const GURL& origin_url, |
40 FileSystemType type, | 40 FileSystemType type, |
41 bool create, | 41 bool create, |
42 const ValidateFileSystemCallback& callback) OVERRIDE; | 42 const ValidateFileSystemCallback& callback) OVERRIDE; |
43 virtual FilePath GetFileSystemRootPathOnFileThread( | 43 virtual FilePath GetFileSystemRootPathOnFileThread( |
44 const GURL& origin_url, | 44 const GURL& origin_url, |
45 FileSystemType type, | 45 FileSystemType type, |
46 const FilePath& virtual_path, | 46 const FilePath& virtual_path, |
47 bool create) OVERRIDE; | 47 bool create) OVERRIDE; |
48 virtual bool IsAccessAllowed(const GURL& origin_url, | 48 virtual bool IsAccessAllowed(const FileSystemURL& url) OVERRIDE; |
49 FileSystemType type, | |
50 const FilePath& virtual_path) OVERRIDE; | |
51 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE; | 49 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE; |
52 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; | 50 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; |
53 virtual FilePath GetPathForPermissionsCheck(const FilePath& virtual_path) | 51 virtual FilePath GetPathForPermissionsCheck(const FilePath& virtual_path) |
54 const OVERRIDE; | 52 const OVERRIDE; |
55 virtual FileSystemOperationInterface* CreateFileSystemOperation( | 53 virtual FileSystemOperationInterface* CreateFileSystemOperation( |
56 const FileSystemURL& url, | 54 const FileSystemURL& url, |
57 FileSystemContext* context) const OVERRIDE; | 55 FileSystemContext* context) const OVERRIDE; |
58 virtual webkit_blob::FileStreamReader* CreateFileStreamReader( | 56 virtual webkit_blob::FileStreamReader* CreateFileStreamReader( |
59 const FileSystemURL& url, | 57 const FileSystemURL& url, |
60 int64 offset, | 58 int64 offset, |
(...skipping 11 matching lines...) Expand all Loading... |
72 | 70 |
73 private: | 71 private: |
74 FilePath base_path_; | 72 FilePath base_path_; |
75 scoped_ptr<LocalFileUtil> local_file_util_; | 73 scoped_ptr<LocalFileUtil> local_file_util_; |
76 scoped_ptr<FileSystemQuotaUtil> quota_util_; | 74 scoped_ptr<FileSystemQuotaUtil> quota_util_; |
77 }; | 75 }; |
78 | 76 |
79 } // namespace fileapi | 77 } // namespace fileapi |
80 | 78 |
81 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 79 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
OLD | NEW |