OLD | NEW |
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 Loading... |
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>(FileStreamWriter::CreateForLocalFile( | 125 return scoped_ptr<FileStreamWriter>( |
126 context->default_file_task_runner(), url.path(), offset)); | 126 FileStreamWriter::CreateForLocalFile( |
| 127 context->default_file_task_runner(), |
| 128 url.path(), |
| 129 offset, |
| 130 FileStreamWriter::OPEN_EXISTING_FILE)); |
127 } | 131 } |
128 | 132 |
129 FileSystemQuotaUtil* IsolatedFileSystemBackend::GetQuotaUtil() { | 133 FileSystemQuotaUtil* IsolatedFileSystemBackend::GetQuotaUtil() { |
130 // No quota support. | 134 // No quota support. |
131 return NULL; | 135 return NULL; |
132 } | 136 } |
133 | 137 |
134 } // namespace fileapi | 138 } // namespace fileapi |
OLD | NEW |