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

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

Issue 10870040: Rename FileSystemOperationInterface to FileSystemOperation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing Created 8 years, 3 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') | webkit/fileapi/webkit_fileapi.gypi » ('j') | 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 FileSystemFileUtil* TestMountPointProvider::GetFileUtil(FileSystemType type) { 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 FileSystemOperation* TestMountPointProvider::CreateFileSystemOperation(
137 TestMountPointProvider::CreateFileSystemOperation(
138 const FileSystemURL& url, 137 const FileSystemURL& url,
139 FileSystemContext* context) const { 138 FileSystemContext* context) const {
140 scoped_ptr<FileSystemOperationContext> operation_context( 139 scoped_ptr<FileSystemOperationContext> operation_context(
141 new FileSystemOperationContext(context)); 140 new FileSystemOperationContext(context));
142 return new LocalFileSystemOperation(context, operation_context.Pass()); 141 return new LocalFileSystemOperation(context, operation_context.Pass());
143 } 142 }
144 143
145 webkit_blob::FileStreamReader* TestMountPointProvider::CreateFileStreamReader( 144 webkit_blob::FileStreamReader* TestMountPointProvider::CreateFileStreamReader(
146 const FileSystemURL& url, 145 const FileSystemURL& url,
147 int64 offset, 146 int64 offset,
(...skipping 17 matching lines...) Expand all
165 FileSystemType type, 164 FileSystemType type,
166 FileSystemContext* context, 165 FileSystemContext* context,
167 const DeleteFileSystemCallback& callback) { 166 const DeleteFileSystemCallback& callback) {
168 // This won't be called unless we add test code that opens a test 167 // This won't be called unless we add test code that opens a test
169 // filesystem by OpenFileSystem. 168 // filesystem by OpenFileSystem.
170 NOTREACHED(); 169 NOTREACHED();
171 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); 170 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION);
172 } 171 }
173 172
174 } // namespace fileapi 173 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/test_mount_point_provider.h ('k') | webkit/fileapi/webkit_fileapi.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698