| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 } | 191 } |
| 192 | 192 |
| 193 scoped_ptr<fileapi::FileStreamWriter> | 193 scoped_ptr<fileapi::FileStreamWriter> |
| 194 MediaFileSystemBackend::CreateFileStreamWriter( | 194 MediaFileSystemBackend::CreateFileStreamWriter( |
| 195 const FileSystemURL& url, | 195 const FileSystemURL& url, |
| 196 int64 offset, | 196 int64 offset, |
| 197 FileSystemContext* context) const { | 197 FileSystemContext* context) const { |
| 198 return scoped_ptr<fileapi::FileStreamWriter>( | 198 return scoped_ptr<fileapi::FileStreamWriter>( |
| 199 fileapi::FileStreamWriter::CreateForLocalFile( | 199 fileapi::FileStreamWriter::CreateForLocalFile( |
| 200 context->default_file_task_runner(), | 200 context->default_file_task_runner(), |
| 201 url.path(), offset)); | 201 url.path(), |
| 202 offset, |
| 203 fileapi::FileStreamWriter::OPEN_EXISTING)); |
| 202 } | 204 } |
| 203 | 205 |
| 204 fileapi::FileSystemQuotaUtil* | 206 fileapi::FileSystemQuotaUtil* |
| 205 MediaFileSystemBackend::GetQuotaUtil() { | 207 MediaFileSystemBackend::GetQuotaUtil() { |
| 206 // No quota support. | 208 // No quota support. |
| 207 return NULL; | 209 return NULL; |
| 208 } | 210 } |
| OLD | NEW |