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

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

Issue 23601005: Deprecate FileSystemBackend::GetFileUtil() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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_backend.h" 5 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 const OpenFileSystemCallback& callback) { 108 const OpenFileSystemCallback& callback) {
109 // We never allow opening a new isolated FileSystem via usual OpenFileSystem. 109 // We never allow opening a new isolated FileSystem via usual OpenFileSystem.
110 base::MessageLoopProxy::current()->PostTask( 110 base::MessageLoopProxy::current()->PostTask(
111 FROM_HERE, 111 FROM_HERE,
112 base::Bind(callback, 112 base::Bind(callback,
113 GetFileSystemRootURI(origin_url, type), 113 GetFileSystemRootURI(origin_url, type),
114 GetFileSystemName(origin_url, type), 114 GetFileSystemName(origin_url, type),
115 base::PLATFORM_FILE_ERROR_SECURITY)); 115 base::PLATFORM_FILE_ERROR_SECURITY));
116 } 116 }
117 117
118 fileapi::FileSystemFileUtil* MediaFileSystemBackend::GetFileUtil(
119 fileapi::FileSystemType type) {
120 NOTREACHED();
121 return NULL;
122 }
123
124 fileapi::AsyncFileUtil* MediaFileSystemBackend::GetAsyncFileUtil( 118 fileapi::AsyncFileUtil* MediaFileSystemBackend::GetAsyncFileUtil(
125 fileapi::FileSystemType type) { 119 fileapi::FileSystemType type) {
126 switch (type) { 120 switch (type) {
127 case fileapi::kFileSystemTypeNativeMedia: 121 case fileapi::kFileSystemTypeNativeMedia:
128 return native_media_file_util_.get(); 122 return native_media_file_util_.get();
129 case fileapi::kFileSystemTypeDeviceMedia: 123 case fileapi::kFileSystemTypeDeviceMedia:
130 return device_media_async_file_util_.get(); 124 return device_media_async_file_util_.get();
131 #if defined(OS_WIN) || defined(OS_MACOSX) 125 #if defined(OS_WIN) || defined(OS_MACOSX)
132 case fileapi::kFileSystemTypeItunes: 126 case fileapi::kFileSystemTypeItunes:
133 return itunes_file_util_.get(); 127 return itunes_file_util_.get();
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 url.path(), offset)); 189 url.path(), offset));
196 } 190 }
197 191
198 fileapi::FileSystemQuotaUtil* 192 fileapi::FileSystemQuotaUtil*
199 MediaFileSystemBackend::GetQuotaUtil() { 193 MediaFileSystemBackend::GetQuotaUtil() {
200 // No quota support. 194 // No quota support.
201 return NULL; 195 return NULL;
202 } 196 }
203 197
204 } // namespace chrome 198 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698