| OLD | NEW |
| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 } | 104 } |
| 105 | 105 |
| 106 void MediaFileSystemBackend::OpenFileSystem( | 106 void MediaFileSystemBackend::OpenFileSystem( |
| 107 const GURL& origin_url, | 107 const GURL& origin_url, |
| 108 fileapi::FileSystemType type, | 108 fileapi::FileSystemType type, |
| 109 fileapi::OpenFileSystemMode mode, | 109 fileapi::OpenFileSystemMode mode, |
| 110 const OpenFileSystemCallback& callback) { | 110 const OpenFileSystemCallback& callback) { |
| 111 // We never allow opening a new isolated FileSystem via usual OpenFileSystem. | 111 // We never allow opening a new isolated FileSystem via usual OpenFileSystem. |
| 112 base::MessageLoopProxy::current()->PostTask( | 112 base::MessageLoopProxy::current()->PostTask( |
| 113 FROM_HERE, | 113 FROM_HERE, |
| 114 base::Bind(callback, base::PLATFORM_FILE_ERROR_SECURITY)); | 114 base::Bind(callback, |
| 115 GetFileSystemRootURI(origin_url, type), |
| 116 GetFileSystemName(origin_url, type), |
| 117 base::PLATFORM_FILE_ERROR_SECURITY)); |
| 115 } | 118 } |
| 116 | 119 |
| 117 fileapi::FileSystemFileUtil* MediaFileSystemBackend::GetFileUtil( | 120 fileapi::FileSystemFileUtil* MediaFileSystemBackend::GetFileUtil( |
| 118 fileapi::FileSystemType type) { | 121 fileapi::FileSystemType type) { |
| 119 NOTREACHED(); | 122 NOTREACHED(); |
| 120 return NULL; | 123 return NULL; |
| 121 } | 124 } |
| 122 | 125 |
| 123 fileapi::AsyncFileUtil* MediaFileSystemBackend::GetAsyncFileUtil( | 126 fileapi::AsyncFileUtil* MediaFileSystemBackend::GetAsyncFileUtil( |
| 124 fileapi::FileSystemType type) { | 127 fileapi::FileSystemType type) { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 url.path(), offset)); | 205 url.path(), offset)); |
| 203 } | 206 } |
| 204 | 207 |
| 205 fileapi::FileSystemQuotaUtil* | 208 fileapi::FileSystemQuotaUtil* |
| 206 MediaFileSystemBackend::GetQuotaUtil() { | 209 MediaFileSystemBackend::GetQuotaUtil() { |
| 207 // No quota support. | 210 // No quota support. |
| 208 return NULL; | 211 return NULL; |
| 209 } | 212 } |
| 210 | 213 |
| 211 } // namespace chrome | 214 } // namespace chrome |
| OLD | NEW |