Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: webkit/fileapi/test_mount_point_provider.cc

Issue 10810053: Enables internal filesystem types via Isolated filesystems (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: layout test crash fix Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/fileapi/test_mount_point_provider.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webkit/fileapi/test_mount_point_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698