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

Side by Side Diff: webkit/browser/fileapi/isolated_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "webkit/browser/fileapi/isolated_file_system_backend.h" 5 #include "webkit/browser/fileapi/isolated_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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 webkit_blob::FileStreamReader::CreateForLocalFile( 112 webkit_blob::FileStreamReader::CreateForLocalFile(
113 context->default_file_task_runner(), 113 context->default_file_task_runner(),
114 url.path(), offset, expected_modification_time)); 114 url.path(), offset, expected_modification_time));
115 } 115 }
116 116
117 scoped_ptr<FileStreamWriter> IsolatedFileSystemBackend::CreateFileStreamWriter( 117 scoped_ptr<FileStreamWriter> IsolatedFileSystemBackend::CreateFileStreamWriter(
118 const FileSystemURL& url, 118 const FileSystemURL& url,
119 int64 offset, 119 int64 offset,
120 FileSystemContext* context) const { 120 FileSystemContext* context) const {
121 return scoped_ptr<FileStreamWriter>(FileStreamWriter::CreateForLocalFile( 121 return scoped_ptr<FileStreamWriter>(FileStreamWriter::CreateForLocalFile(
122 context->default_file_task_runner(), url.path(), offset)); 122 context->default_file_task_runner(), url.path(), offset, true));
123 } 123 }
124 124
125 FileSystemQuotaUtil* IsolatedFileSystemBackend::GetQuotaUtil() { 125 FileSystemQuotaUtil* IsolatedFileSystemBackend::GetQuotaUtil() {
126 // No quota support. 126 // No quota support.
127 return NULL; 127 return NULL;
128 } 128 }
129 129
130 } // namespace fileapi 130 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698