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/fileapi/sandbox_mount_point_provider.h" | 5 #include "webkit/fileapi/sandbox_mount_point_provider.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 } | 463 } |
464 operation_context->set_access_observers(access_observers_); | 464 operation_context->set_access_observers(access_observers_); |
465 | 465 |
466 return new LocalFileSystemOperation(context, operation_context.Pass()); | 466 return new LocalFileSystemOperation(context, operation_context.Pass()); |
467 } | 467 } |
468 | 468 |
469 webkit_blob::FileStreamReader* | 469 webkit_blob::FileStreamReader* |
470 SandboxMountPointProvider::CreateFileStreamReader( | 470 SandboxMountPointProvider::CreateFileStreamReader( |
471 const FileSystemURL& url, | 471 const FileSystemURL& url, |
472 int64 offset, | 472 int64 offset, |
| 473 const base::Time& expected_modification_time, |
473 FileSystemContext* context) const { | 474 FileSystemContext* context) const { |
474 return new FileSystemFileStreamReader(context, url, offset); | 475 return new FileSystemFileStreamReader( |
| 476 context, url, offset, expected_modification_time); |
475 } | 477 } |
476 | 478 |
477 fileapi::FileStreamWriter* SandboxMountPointProvider::CreateFileStreamWriter( | 479 fileapi::FileStreamWriter* SandboxMountPointProvider::CreateFileStreamWriter( |
478 const FileSystemURL& url, | 480 const FileSystemURL& url, |
479 int64 offset, | 481 int64 offset, |
480 FileSystemContext* context) const { | 482 FileSystemContext* context) const { |
481 return new SandboxFileStreamWriter( | 483 return new SandboxFileStreamWriter( |
482 context, url, offset, update_observers_); | 484 context, url, offset, update_observers_); |
483 } | 485 } |
484 | 486 |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 i < file_system_options_.additional_allowed_schemes().size(); | 759 i < file_system_options_.additional_allowed_schemes().size(); |
758 ++i) { | 760 ++i) { |
759 if (url.SchemeIs( | 761 if (url.SchemeIs( |
760 file_system_options_.additional_allowed_schemes()[i].c_str())) | 762 file_system_options_.additional_allowed_schemes()[i].c_str())) |
761 return true; | 763 return true; |
762 } | 764 } |
763 return false; | 765 return false; |
764 } | 766 } |
765 | 767 |
766 } // namespace fileapi | 768 } // namespace fileapi |
OLD | NEW |