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

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

Issue 206083004: Revert of Revert of Add a parameter to FileStreamWriter::CreateForLocalFile to allow creating new (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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_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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 } 209 }
210 210
211 scoped_ptr<fileapi::FileStreamWriter> 211 scoped_ptr<fileapi::FileStreamWriter>
212 MediaFileSystemBackend::CreateFileStreamWriter( 212 MediaFileSystemBackend::CreateFileStreamWriter(
213 const FileSystemURL& url, 213 const FileSystemURL& url,
214 int64 offset, 214 int64 offset,
215 FileSystemContext* context) const { 215 FileSystemContext* context) const {
216 return scoped_ptr<fileapi::FileStreamWriter>( 216 return scoped_ptr<fileapi::FileStreamWriter>(
217 fileapi::FileStreamWriter::CreateForLocalFile( 217 fileapi::FileStreamWriter::CreateForLocalFile(
218 context->default_file_task_runner(), 218 context->default_file_task_runner(),
219 url.path(), offset)); 219 url.path(),
220 offset,
221 fileapi::FileStreamWriter::OPEN_EXISTING_FILE));
220 } 222 }
221 223
222 fileapi::FileSystemQuotaUtil* 224 fileapi::FileSystemQuotaUtil*
223 MediaFileSystemBackend::GetQuotaUtil() { 225 MediaFileSystemBackend::GetQuotaUtil() {
224 // No quota support. 226 // No quota support.
225 return NULL; 227 return NULL;
226 } 228 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698