| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 new webkit_blob::LocalFileStreamReader( | 113 new webkit_blob::LocalFileStreamReader( |
| 114 context->default_file_task_runner(), | 114 context->default_file_task_runner(), |
| 115 url.path(), offset, expected_modification_time)); | 115 url.path(), offset, expected_modification_time)); |
| 116 } | 116 } |
| 117 | 117 |
| 118 scoped_ptr<FileStreamWriter> IsolatedFileSystemBackend::CreateFileStreamWriter( | 118 scoped_ptr<FileStreamWriter> IsolatedFileSystemBackend::CreateFileStreamWriter( |
| 119 const FileSystemURL& url, | 119 const FileSystemURL& url, |
| 120 int64 offset, | 120 int64 offset, |
| 121 FileSystemContext* context) const { | 121 FileSystemContext* context) const { |
| 122 return scoped_ptr<FileStreamWriter>(new LocalFileStreamWriter( | 122 return scoped_ptr<FileStreamWriter>(new LocalFileStreamWriter( |
| 123 context->default_file_task_runner(), url.path(), offset)); | 123 context->default_file_task_runner(), url.path(), offset, true)); |
| 124 } | 124 } |
| 125 | 125 |
| 126 FileSystemQuotaUtil* IsolatedFileSystemBackend::GetQuotaUtil() { | 126 FileSystemQuotaUtil* IsolatedFileSystemBackend::GetQuotaUtil() { |
| 127 // No quota support. | 127 // No quota support. |
| 128 return NULL; | 128 return NULL; |
| 129 } | 129 } |
| 130 | 130 |
| 131 } // namespace fileapi | 131 } // namespace fileapi |
| OLD | NEW |