| 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 "storage/browser/fileapi/isolated_file_system_backend.h" | 5 #include "storage/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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 context->default_file_task_runner(), | 133 context->default_file_task_runner(), |
| 134 url.path(), | 134 url.path(), |
| 135 offset, | 135 offset, |
| 136 expected_modification_time)); | 136 expected_modification_time)); |
| 137 } | 137 } |
| 138 | 138 |
| 139 scoped_ptr<FileStreamWriter> IsolatedFileSystemBackend::CreateFileStreamWriter( | 139 scoped_ptr<FileStreamWriter> IsolatedFileSystemBackend::CreateFileStreamWriter( |
| 140 const FileSystemURL& url, | 140 const FileSystemURL& url, |
| 141 int64 offset, | 141 int64 offset, |
| 142 FileSystemContext* context) const { | 142 FileSystemContext* context) const { |
| 143 return scoped_ptr<FileStreamWriter>( | 143 return scoped_ptr<FileStreamWriter>(FileStreamWriter::CreateForLocalFile( |
| 144 FileStreamWriter::CreateForLocalFile( | 144 context->default_file_task_runner(), url.path(), offset)); |
| 145 context->default_file_task_runner(), | |
| 146 url.path(), | |
| 147 offset, | |
| 148 FileStreamWriter::OPEN_EXISTING_FILE)); | |
| 149 } | 145 } |
| 150 | 146 |
| 151 FileSystemQuotaUtil* IsolatedFileSystemBackend::GetQuotaUtil() { | 147 FileSystemQuotaUtil* IsolatedFileSystemBackend::GetQuotaUtil() { |
| 152 // No quota support. | 148 // No quota support. |
| 153 return NULL; | 149 return NULL; |
| 154 } | 150 } |
| 155 | 151 |
| 156 const UpdateObserverList* IsolatedFileSystemBackend::GetUpdateObservers( | 152 const UpdateObserverList* IsolatedFileSystemBackend::GetUpdateObservers( |
| 157 FileSystemType type) const { | 153 FileSystemType type) const { |
| 158 return NULL; | 154 return NULL; |
| 159 } | 155 } |
| 160 | 156 |
| 161 const ChangeObserverList* IsolatedFileSystemBackend::GetChangeObservers( | 157 const ChangeObserverList* IsolatedFileSystemBackend::GetChangeObservers( |
| 162 FileSystemType type) const { | 158 FileSystemType type) const { |
| 163 return NULL; | 159 return NULL; |
| 164 } | 160 } |
| 165 | 161 |
| 166 const AccessObserverList* IsolatedFileSystemBackend::GetAccessObservers( | 162 const AccessObserverList* IsolatedFileSystemBackend::GetAccessObservers( |
| 167 FileSystemType type) const { | 163 FileSystemType type) const { |
| 168 return NULL; | 164 return NULL; |
| 169 } | 165 } |
| 170 | 166 |
| 171 } // namespace storage | 167 } // namespace storage |
| OLD | NEW |