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

Side by Side Diff: chrome/browser/media_galleries/fileapi/media_file_system_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chrome/browser/media_galleries/fileapi/media_file_system_mount_point_p rovider.h" 5 #include "chrome/browser/media_galleries/fileapi/media_file_system_mount_point_p rovider.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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 const GURL& origin_url, 76 const GURL& origin_url,
77 fileapi::FileSystemType type, 77 fileapi::FileSystemType type,
78 bool create, 78 bool create,
79 const ValidateFileSystemCallback& callback) { 79 const ValidateFileSystemCallback& callback) {
80 // We never allow opening a new isolated FileSystem via usual OpenFileSystem. 80 // We never allow opening a new isolated FileSystem via usual OpenFileSystem.
81 base::MessageLoopProxy::current()->PostTask( 81 base::MessageLoopProxy::current()->PostTask(
82 FROM_HERE, 82 FROM_HERE,
83 base::Bind(callback, base::PLATFORM_FILE_ERROR_SECURITY)); 83 base::Bind(callback, base::PLATFORM_FILE_ERROR_SECURITY));
84 } 84 }
85 85
86 base::FilePath
87 MediaFileSystemMountPointProvider::GetFileSystemRootPathOnFileThread(
88 const FileSystemURL& url,
89 bool create) {
90 // This is not supposed to be used.
91 NOTREACHED();
92 return base::FilePath();
93 }
94
95 fileapi::FileSystemFileUtil* MediaFileSystemMountPointProvider::GetFileUtil( 86 fileapi::FileSystemFileUtil* MediaFileSystemMountPointProvider::GetFileUtil(
96 fileapi::FileSystemType type) { 87 fileapi::FileSystemType type) {
97 switch (type) { 88 switch (type) {
98 case fileapi::kFileSystemTypeNativeMedia: 89 case fileapi::kFileSystemTypeNativeMedia:
99 return native_media_file_util_->sync_file_util(); 90 return native_media_file_util_->sync_file_util();
100 default: 91 default:
101 NOTREACHED(); 92 NOTREACHED();
102 } 93 }
103 return NULL; 94 return NULL;
104 } 95 }
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 void MediaFileSystemMountPointProvider::DeleteFileSystem( 203 void MediaFileSystemMountPointProvider::DeleteFileSystem(
213 const GURL& origin_url, 204 const GURL& origin_url,
214 fileapi::FileSystemType type, 205 fileapi::FileSystemType type,
215 FileSystemContext* context, 206 FileSystemContext* context,
216 const DeleteFileSystemCallback& callback) { 207 const DeleteFileSystemCallback& callback) {
217 NOTREACHED(); 208 NOTREACHED();
218 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); 209 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION);
219 } 210 }
220 211
221 } // namespace chrome 212 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698