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

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

Issue 18023022: Blob support for IDB [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use ScopedVector and stl_utils for BlobDataHandles. Created 7 years 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698