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

Side by Side Diff: webkit/browser/fileapi/isolated_file_system_backend.cc

Issue 206073006: 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) 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 return scoped_ptr<webkit_blob::FileStreamReader>( 115 return scoped_ptr<webkit_blob::FileStreamReader>(
116 webkit_blob::FileStreamReader::CreateForLocalFile( 116 webkit_blob::FileStreamReader::CreateForLocalFile(
117 context->default_file_task_runner(), 117 context->default_file_task_runner(),
118 url.path(), offset, expected_modification_time)); 118 url.path(), offset, expected_modification_time));
119 } 119 }
120 120
121 scoped_ptr<FileStreamWriter> IsolatedFileSystemBackend::CreateFileStreamWriter( 121 scoped_ptr<FileStreamWriter> IsolatedFileSystemBackend::CreateFileStreamWriter(
122 const FileSystemURL& url, 122 const FileSystemURL& url,
123 int64 offset, 123 int64 offset,
124 FileSystemContext* context) const { 124 FileSystemContext* context) const {
125 return scoped_ptr<FileStreamWriter>( 125 return scoped_ptr<FileStreamWriter>(FileStreamWriter::CreateForLocalFile(
126 FileStreamWriter::CreateForLocalFile( 126 context->default_file_task_runner(), url.path(), offset));
127 context->default_file_task_runner(),
128 url.path(),
129 offset,
130 FileStreamWriter::OPEN_EXISTING_FILE));
131 } 127 }
132 128
133 FileSystemQuotaUtil* IsolatedFileSystemBackend::GetQuotaUtil() { 129 FileSystemQuotaUtil* IsolatedFileSystemBackend::GetQuotaUtil() {
134 // No quota support. 130 // No quota support.
135 return NULL; 131 return NULL;
136 } 132 }
137 133
138 } // namespace fileapi 134 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/file_stream_writer.h ('k') | webkit/browser/fileapi/local_file_stream_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698