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 #include "webkit/fileapi/test_mount_point_provider.h" | 5 #include "webkit/fileapi/test_mount_point_provider.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 bool TestMountPointProvider::IsAccessAllowed( | 117 bool TestMountPointProvider::IsAccessAllowed( |
118 const GURL& origin_url, FileSystemType type, const FilePath& virtual_path) { | 118 const GURL& origin_url, FileSystemType type, const FilePath& virtual_path) { |
119 return type == fileapi::kFileSystemTypeTest; | 119 return type == fileapi::kFileSystemTypeTest; |
120 } | 120 } |
121 | 121 |
122 bool TestMountPointProvider::IsRestrictedFileName( | 122 bool TestMountPointProvider::IsRestrictedFileName( |
123 const FilePath& filename) const { | 123 const FilePath& filename) const { |
124 return false; | 124 return false; |
125 } | 125 } |
126 | 126 |
127 FileSystemFileUtil* TestMountPointProvider::GetFileUtil() { | 127 FileSystemFileUtil* TestMountPointProvider::GetFileUtil(FileSystemType type) { |
128 return local_file_util_.get(); | 128 return local_file_util_.get(); |
129 } | 129 } |
130 | 130 |
131 FilePath TestMountPointProvider::GetPathForPermissionsCheck( | 131 FilePath TestMountPointProvider::GetPathForPermissionsCheck( |
132 const FilePath& virtual_path) const { | 132 const FilePath& virtual_path) const { |
133 return base_path_.Append(virtual_path); | 133 return base_path_.Append(virtual_path); |
134 } | 134 } |
135 | 135 |
136 FileSystemOperationInterface* | 136 FileSystemOperationInterface* |
137 TestMountPointProvider::CreateFileSystemOperation( | 137 TestMountPointProvider::CreateFileSystemOperation( |
(...skipping 14 matching lines...) Expand all Loading... |
152 int64 offset, | 152 int64 offset, |
153 FileSystemContext* context) const { | 153 FileSystemContext* context) const { |
154 return new SandboxFileStreamWriter(context, url, offset); | 154 return new SandboxFileStreamWriter(context, url, offset); |
155 } | 155 } |
156 | 156 |
157 FileSystemQuotaUtil* TestMountPointProvider::GetQuotaUtil() { | 157 FileSystemQuotaUtil* TestMountPointProvider::GetQuotaUtil() { |
158 return quota_util_.get(); | 158 return quota_util_.get(); |
159 } | 159 } |
160 | 160 |
161 } // namespace fileapi | 161 } // namespace fileapi |
OLD | NEW |