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

Side by Side Diff: chrome/browser/media_galleries/fileapi/media_file_system_mount_point_provider.cc

Issue 16043006: Rename FileSystemMountPointProvider::ValidateFileSystemRoot to OpenFileSystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 case fileapi::kFileSystemTypeNativeMedia: 66 case fileapi::kFileSystemTypeNativeMedia:
67 case fileapi::kFileSystemTypeDeviceMedia: 67 case fileapi::kFileSystemTypeDeviceMedia:
68 case fileapi::kFileSystemTypePicasa: 68 case fileapi::kFileSystemTypePicasa:
69 case fileapi::kFileSystemTypeItunes: 69 case fileapi::kFileSystemTypeItunes:
70 return true; 70 return true;
71 default: 71 default:
72 return false; 72 return false;
73 } 73 }
74 } 74 }
75 75
76 void MediaFileSystemMountPointProvider::ValidateFileSystemRoot( 76 void MediaFileSystemMountPointProvider::OpenFileSystem(
77 const GURL& origin_url, 77 const GURL& origin_url,
78 fileapi::FileSystemType type, 78 fileapi::FileSystemType type,
79 bool create, 79 fileapi::OpenFileSystemMode mode,
80 const ValidateFileSystemCallback& callback) { 80 const OpenFileSystemCallback& callback) {
81 // We never allow opening a new isolated FileSystem via usual OpenFileSystem. 81 // We never allow opening a new isolated FileSystem via usual OpenFileSystem.
82 base::MessageLoopProxy::current()->PostTask( 82 base::MessageLoopProxy::current()->PostTask(
83 FROM_HERE, 83 FROM_HERE,
84 base::Bind(callback, base::PLATFORM_FILE_ERROR_SECURITY)); 84 base::Bind(callback, base::PLATFORM_FILE_ERROR_SECURITY));
85 } 85 }
86 86
87 fileapi::FileSystemFileUtil* MediaFileSystemMountPointProvider::GetFileUtil( 87 fileapi::FileSystemFileUtil* MediaFileSystemMountPointProvider::GetFileUtil(
88 fileapi::FileSystemType type) { 88 fileapi::FileSystemType type) {
89 switch (type) { 89 switch (type) {
90 case fileapi::kFileSystemTypeNativeMedia: 90 case fileapi::kFileSystemTypeNativeMedia:
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 void MediaFileSystemMountPointProvider::DeleteFileSystem( 204 void MediaFileSystemMountPointProvider::DeleteFileSystem(
205 const GURL& origin_url, 205 const GURL& origin_url,
206 fileapi::FileSystemType type, 206 fileapi::FileSystemType type,
207 FileSystemContext* context, 207 FileSystemContext* context,
208 const DeleteFileSystemCallback& callback) { 208 const DeleteFileSystemCallback& callback) {
209 NOTREACHED(); 209 NOTREACHED();
210 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); 210 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION);
211 } 211 }
212 212
213 } // namespace chrome 213 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698