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

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: Merge fixes [builds, untested] Created 7 years, 3 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698