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

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

Issue 9016020: Cleanup FileSystemOperation for preparing for adding FSO-factory method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 8 years, 11 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/local_file_util.h" 5 #include "webkit/fileapi/local_file_util.h"
6 6
7 #include "base/file_util_proxy.h" 7 #include "base/file_util_proxy.h"
8 #include "googleurl/src/gurl.h" 8 #include "googleurl/src/gurl.h"
9 #include "webkit/fileapi/file_system_context.h" 9 #include "webkit/fileapi/file_system_context.h"
10 #include "webkit/fileapi/file_system_mount_point_provider.h" 10 #include "webkit/fileapi/file_system_mount_point_provider.h"
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 return underlying_file_util()->DeleteSingleDirectory( 286 return underlying_file_util()->DeleteSingleDirectory(
287 context, local_path); 287 context, local_path);
288 } 288 }
289 289
290 FilePath LocalFileUtil::GetLocalPath( 290 FilePath LocalFileUtil::GetLocalPath(
291 FileSystemOperationContext* context, 291 FileSystemOperationContext* context,
292 const GURL& origin_url, 292 const GURL& origin_url,
293 FileSystemType type, 293 FileSystemType type,
294 const FilePath& virtual_path) { 294 const FilePath& virtual_path) {
295 FilePath root = context->file_system_context()->GetMountPointProvider(type)-> 295 FilePath root = context->file_system_context()->GetMountPointProvider(type)->
296 ValidateFileSystemRootAndGetPathOnFileThread(origin_url, type, 296 GetFileSystemRootPathOnFileThread(origin_url, type, virtual_path, false);
297 virtual_path, false);
298 if (root.empty()) 297 if (root.empty())
299 return FilePath(); 298 return FilePath();
300 return root.Append(virtual_path); 299 return root.Append(virtual_path);
301 } 300 }
302 301
303 } // namespace fileapi 302 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698