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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 } | 179 } |
180 | 180 |
181 scoped_ptr<fileapi::FileStreamWriter> | 181 scoped_ptr<fileapi::FileStreamWriter> |
182 MediaFileSystemBackend::CreateFileStreamWriter( | 182 MediaFileSystemBackend::CreateFileStreamWriter( |
183 const FileSystemURL& url, | 183 const FileSystemURL& url, |
184 int64 offset, | 184 int64 offset, |
185 FileSystemContext* context) const { | 185 FileSystemContext* context) const { |
186 return scoped_ptr<fileapi::FileStreamWriter>( | 186 return scoped_ptr<fileapi::FileStreamWriter>( |
187 new fileapi::LocalFileStreamWriter( | 187 new fileapi::LocalFileStreamWriter( |
188 context->default_file_task_runner(), | 188 context->default_file_task_runner(), |
189 url.path(), offset)); | 189 url.path(), offset, true)); |
190 } | 190 } |
191 | 191 |
192 fileapi::FileSystemQuotaUtil* | 192 fileapi::FileSystemQuotaUtil* |
193 MediaFileSystemBackend::GetQuotaUtil() { | 193 MediaFileSystemBackend::GetQuotaUtil() { |
194 // No quota support. | 194 // No quota support. |
195 return NULL; | 195 return NULL; |
196 } | 196 } |
197 | 197 |
198 } // namespace chrome | 198 } // namespace chrome |
OLD | NEW |