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

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

Issue 18668003: SyncFS: Introduce SyncFileSystemBackend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 #if defined(OS_WIN) || defined(OS_MACOSX) 96 #if defined(OS_WIN) || defined(OS_MACOSX)
97 case fileapi::kFileSystemTypePicasa: 97 case fileapi::kFileSystemTypePicasa:
98 case fileapi::kFileSystemTypeItunes: 98 case fileapi::kFileSystemTypeItunes:
99 #endif // defined(OS_WIN) || defined(OS_MACOSX) 99 #endif // defined(OS_WIN) || defined(OS_MACOSX)
100 return true; 100 return true;
101 default: 101 default:
102 return false; 102 return false;
103 } 103 }
104 } 104 }
105 105
106 GURL MediaFileSystemMountPointProvider::GetRootURI(
107 const GURL& origin_url,
108 fileapi::FileSystemType type) const {
109 NOTIMPLEMENTED();
110 return GURL();
111 }
112
106 void MediaFileSystemMountPointProvider::OpenFileSystem( 113 void MediaFileSystemMountPointProvider::OpenFileSystem(
107 const GURL& origin_url, 114 const GURL& origin_url,
108 fileapi::FileSystemType type, 115 fileapi::FileSystemType type,
109 fileapi::OpenFileSystemMode mode, 116 fileapi::OpenFileSystemMode mode,
110 const OpenFileSystemCallback& callback) { 117 const OpenFileSystemCallback& callback) {
111 // We never allow opening a new isolated FileSystem via usual OpenFileSystem. 118 // We never allow opening a new isolated FileSystem via usual OpenFileSystem.
112 base::MessageLoopProxy::current()->PostTask( 119 base::MessageLoopProxy::current()->PostTask(
113 FROM_HERE, 120 FROM_HERE,
114 base::Bind(callback, base::PLATFORM_FILE_ERROR_SECURITY)); 121 base::Bind(callback, base::PLATFORM_FILE_ERROR_SECURITY));
115 } 122 }
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 context->task_runners()->file_task_runner(), 208 context->task_runners()->file_task_runner(),
202 url.path(), offset)); 209 url.path(), offset));
203 } 210 }
204 211
205 fileapi::FileSystemQuotaUtil* 212 fileapi::FileSystemQuotaUtil*
206 MediaFileSystemMountPointProvider::GetQuotaUtil() { 213 MediaFileSystemMountPointProvider::GetQuotaUtil() {
207 // No quota support. 214 // No quota support.
208 return NULL; 215 return NULL;
209 } 216 }
210 217
218 const fileapi::UpdateObserverList*
219 MediaFileSystemMountPointProvider::GetUpdateObservers(
220 fileapi::FileSystemType type) const {
221 // No update observer support.
222 return NULL;
223 }
224
211 } // namespace chrome 225 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698