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

Side by Side Diff: webkit/browser/fileapi/isolated_mount_point_provider.cc

Issue 15959006: Deprecate FileSystemMountPointProvider::GetFileSystemRootPathOnFileThread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/browser/fileapi/isolated_mount_point_provider.h" 5 #include "webkit/browser/fileapi/isolated_mount_point_provider.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 const GURL& origin_url, 60 const GURL& origin_url,
61 FileSystemType type, 61 FileSystemType type,
62 bool create, 62 bool create,
63 const ValidateFileSystemCallback& callback) { 63 const ValidateFileSystemCallback& callback) {
64 // We never allow opening a new isolated FileSystem via usual OpenFileSystem. 64 // We never allow opening a new isolated FileSystem via usual OpenFileSystem.
65 base::MessageLoopProxy::current()->PostTask( 65 base::MessageLoopProxy::current()->PostTask(
66 FROM_HERE, 66 FROM_HERE,
67 base::Bind(callback, base::PLATFORM_FILE_ERROR_SECURITY)); 67 base::Bind(callback, base::PLATFORM_FILE_ERROR_SECURITY));
68 } 68 }
69 69
70 base::FilePath IsolatedMountPointProvider::GetFileSystemRootPathOnFileThread(
71 const FileSystemURL& url,
72 bool create) {
73 // This is not supposed to be used.
74 NOTREACHED();
75 return base::FilePath();
76 }
77
78 FileSystemFileUtil* IsolatedMountPointProvider::GetFileUtil( 70 FileSystemFileUtil* IsolatedMountPointProvider::GetFileUtil(
79 FileSystemType type) { 71 FileSystemType type) {
80 switch (type) { 72 switch (type) {
81 case kFileSystemTypeNativeLocal: 73 case kFileSystemTypeNativeLocal:
82 return isolated_file_util_->sync_file_util(); 74 return isolated_file_util_->sync_file_util();
83 case kFileSystemTypeDragged: 75 case kFileSystemTypeDragged:
84 return dragged_file_util_->sync_file_util(); 76 return dragged_file_util_->sync_file_util();
85 case kFileSystemTypeForTransientFile: 77 case kFileSystemTypeForTransientFile:
86 return transient_file_util_->sync_file_util(); 78 return transient_file_util_->sync_file_util();
87 default: 79 default:
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void IsolatedMountPointProvider::DeleteFileSystem( 159 void IsolatedMountPointProvider::DeleteFileSystem(
168 const GURL& origin_url, 160 const GURL& origin_url,
169 FileSystemType type, 161 FileSystemType type,
170 FileSystemContext* context, 162 FileSystemContext* context,
171 const DeleteFileSystemCallback& callback) { 163 const DeleteFileSystemCallback& callback) {
172 NOTREACHED(); 164 NOTREACHED();
173 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); 165 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION);
174 } 166 }
175 167
176 } // namespace fileapi 168 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698