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(), offset, true)); |
jsbell
2013/12/18 23:04:40
Add a comment or make this an enum instead of a ra
ericu
2013/12/19 05:19:11
Done.
| |
202 } | 202 } |
203 | 203 |
204 fileapi::FileSystemQuotaUtil* | 204 fileapi::FileSystemQuotaUtil* |
205 MediaFileSystemBackend::GetQuotaUtil() { | 205 MediaFileSystemBackend::GetQuotaUtil() { |
206 // No quota support. | 206 // No quota support. |
207 return NULL; | 207 return NULL; |
208 } | 208 } |
OLD | NEW |