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

Side by Side Diff: webkit/chromeos/fileapi/cros_mount_point_provider.cc

Issue 10870040: Rename FileSystemOperationInterface to FileSystemOperation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/chromeos/fileapi/cros_mount_point_provider.h" 5 #include "webkit/chromeos/fileapi/cros_mount_point_provider.h"
6 6
7 #include "base/chromeos/chromeos_version.h" 7 #include "base/chromeos/chromeos_version.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 fileapi::FileSystemType type) { 208 fileapi::FileSystemType type) {
209 DCHECK(type == fileapi::kFileSystemTypeNativeLocal); 209 DCHECK(type == fileapi::kFileSystemTypeNativeLocal);
210 return local_file_util_.get(); 210 return local_file_util_.get();
211 } 211 }
212 212
213 FilePath CrosMountPointProvider::GetPathForPermissionsCheck( 213 FilePath CrosMountPointProvider::GetPathForPermissionsCheck(
214 const FilePath& virtual_path) const { 214 const FilePath& virtual_path) const {
215 return virtual_path; 215 return virtual_path;
216 } 216 }
217 217
218 fileapi::FileSystemOperationInterface* 218 fileapi::FileSystemOperation*
219 CrosMountPointProvider::CreateFileSystemOperation( 219 CrosMountPointProvider::CreateFileSystemOperation(
tzik 2012/08/23 14:29:34 ditto?
kinuko 2012/08/24 06:20:54 Done.
220 const fileapi::FileSystemURL& url, 220 const fileapi::FileSystemURL& url,
221 fileapi::FileSystemContext* context) const { 221 fileapi::FileSystemContext* context) const {
222 if (url.type() == fileapi::kFileSystemTypeDrive) { 222 if (url.type() == fileapi::kFileSystemTypeDrive) {
223 base::AutoLock locker(mount_point_map_lock_); 223 base::AutoLock locker(mount_point_map_lock_);
224 RemoteProxyMap::const_iterator found = remote_proxy_map_.find( 224 RemoteProxyMap::const_iterator found = remote_proxy_map_.find(
225 url.filesystem_id()); 225 url.filesystem_id());
226 // TODO(kinuko): we should handle not-found case gracefully. 226 // TODO(kinuko): we should handle not-found case gracefully.
227 // http://crbug.com/141617 227 // http://crbug.com/141617
228 if (found != remote_proxy_map_.end()) { 228 if (found != remote_proxy_map_.end()) {
229 return new chromeos::RemoteFileSystemOperation(found->second); 229 return new chromeos::RemoteFileSystemOperation(found->second);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 } 279 }
280 return iter->first.DirName().AppendRelativePath( 280 return iter->first.DirName().AppendRelativePath(
281 filesystem_path, virtual_path); 281 filesystem_path, virtual_path);
282 } 282 }
283 283
284 fileapi::IsolatedContext* CrosMountPointProvider::isolated_context() const { 284 fileapi::IsolatedContext* CrosMountPointProvider::isolated_context() const {
285 return fileapi::IsolatedContext::GetInstance(); 285 return fileapi::IsolatedContext::GetInstance();
286 } 286 }
287 287
288 } // namespace chromeos 288 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698