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

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

Issue 10781014: Isolated FS for media devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' 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
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(
128 const FileSystemURL& url) {
128 return local_file_util_.get(); 129 return local_file_util_.get();
129 } 130 }
130 131
131 FilePath TestMountPointProvider::GetPathForPermissionsCheck( 132 FilePath TestMountPointProvider::GetPathForPermissionsCheck(
132 const FilePath& virtual_path) const { 133 const FilePath& virtual_path) const {
133 return base_path_.Append(virtual_path); 134 return base_path_.Append(virtual_path);
134 } 135 }
135 136
136 FileSystemOperationInterface* 137 FileSystemOperationInterface*
137 TestMountPointProvider::CreateFileSystemOperation( 138 TestMountPointProvider::CreateFileSystemOperation(
(...skipping 14 matching lines...) Expand all
152 int64 offset, 153 int64 offset,
153 FileSystemContext* context) const { 154 FileSystemContext* context) const {
154 return new SandboxFileStreamWriter(context, url, offset); 155 return new SandboxFileStreamWriter(context, url, offset);
155 } 156 }
156 157
157 FileSystemQuotaUtil* TestMountPointProvider::GetQuotaUtil() { 158 FileSystemQuotaUtil* TestMountPointProvider::GetQuotaUtil() {
158 return quota_util_.get(); 159 return quota_util_.get();
159 } 160 }
160 161
161 } // namespace fileapi 162 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698