| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" | 5 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 expected_modification_time)); | 352 expected_modification_time)); |
| 353 } | 353 } |
| 354 | 354 |
| 355 scoped_ptr<storage::FileStreamWriter> | 355 scoped_ptr<storage::FileStreamWriter> |
| 356 MediaFileSystemBackend::CreateFileStreamWriter( | 356 MediaFileSystemBackend::CreateFileStreamWriter( |
| 357 const FileSystemURL& url, | 357 const FileSystemURL& url, |
| 358 int64 offset, | 358 int64 offset, |
| 359 FileSystemContext* context) const { | 359 FileSystemContext* context) const { |
| 360 return scoped_ptr<storage::FileStreamWriter>( | 360 return scoped_ptr<storage::FileStreamWriter>( |
| 361 storage::FileStreamWriter::CreateForLocalFile( | 361 storage::FileStreamWriter::CreateForLocalFile( |
| 362 context->default_file_task_runner(), | 362 context->default_file_task_runner(), url.path(), offset)); |
| 363 url.path(), | |
| 364 offset, | |
| 365 storage::FileStreamWriter::OPEN_EXISTING_FILE)); | |
| 366 } | 363 } |
| 367 | 364 |
| 368 storage::FileSystemQuotaUtil* MediaFileSystemBackend::GetQuotaUtil() { | 365 storage::FileSystemQuotaUtil* MediaFileSystemBackend::GetQuotaUtil() { |
| 369 // No quota support. | 366 // No quota support. |
| 370 return NULL; | 367 return NULL; |
| 371 } | 368 } |
| 372 | 369 |
| 373 const storage::UpdateObserverList* MediaFileSystemBackend::GetUpdateObservers( | 370 const storage::UpdateObserverList* MediaFileSystemBackend::GetUpdateObservers( |
| 374 storage::FileSystemType type) const { | 371 storage::FileSystemType type) const { |
| 375 return NULL; | 372 return NULL; |
| 376 } | 373 } |
| 377 | 374 |
| 378 const storage::ChangeObserverList* MediaFileSystemBackend::GetChangeObservers( | 375 const storage::ChangeObserverList* MediaFileSystemBackend::GetChangeObservers( |
| 379 storage::FileSystemType type) const { | 376 storage::FileSystemType type) const { |
| 380 return NULL; | 377 return NULL; |
| 381 } | 378 } |
| 382 | 379 |
| 383 const storage::AccessObserverList* MediaFileSystemBackend::GetAccessObservers( | 380 const storage::AccessObserverList* MediaFileSystemBackend::GetAccessObservers( |
| 384 storage::FileSystemType type) const { | 381 storage::FileSystemType type) const { |
| 385 return NULL; | 382 return NULL; |
| 386 } | 383 } |
| OLD | NEW |