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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 return new FileSystemOperation(context); | 450 return new FileSystemOperation(context); |
451 } | 451 } |
452 | 452 |
453 webkit_blob::FileReader* SandboxMountPointProvider::CreateFileReader( | 453 webkit_blob::FileReader* SandboxMountPointProvider::CreateFileReader( |
454 const GURL& url, | 454 const GURL& url, |
455 int64 offset, | 455 int64 offset, |
456 FileSystemContext* context) const { | 456 FileSystemContext* context) const { |
457 return new FileSystemFileReader(context, url, offset); | 457 return new FileSystemFileReader(context, url, offset); |
458 } | 458 } |
459 | 459 |
| 460 FileSystemQuotaUtil* SandboxMountPointProvider::GetQuotaUtil() { |
| 461 return this; |
| 462 } |
| 463 |
460 FilePath SandboxMountPointProvider::old_base_path() const { | 464 FilePath SandboxMountPointProvider::old_base_path() const { |
461 return profile_path_.Append(kOldFileSystemDirectory); | 465 return profile_path_.Append(kOldFileSystemDirectory); |
462 } | 466 } |
463 | 467 |
464 FilePath SandboxMountPointProvider::new_base_path() const { | 468 FilePath SandboxMountPointProvider::new_base_path() const { |
465 return profile_path_.Append(kNewFileSystemDirectory); | 469 return profile_path_.Append(kNewFileSystemDirectory); |
466 } | 470 } |
467 | 471 |
468 FilePath SandboxMountPointProvider::renamed_old_base_path() const { | 472 FilePath SandboxMountPointProvider::renamed_old_base_path() const { |
469 return profile_path_.Append(kRenamedOldFileSystemDirectory); | 473 return profile_path_.Append(kRenamedOldFileSystemDirectory); |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 break; | 726 break; |
723 case base::PLATFORM_FILE_ERROR_FAILED: | 727 case base::PLATFORM_FILE_ERROR_FAILED: |
724 default: | 728 default: |
725 REPORT(kUnknownError); | 729 REPORT(kUnknownError); |
726 break; | 730 break; |
727 } | 731 } |
728 #undef REPORT | 732 #undef REPORT |
729 } | 733 } |
730 | 734 |
731 } // namespace fileapi | 735 } // namespace fileapi |
OLD | NEW |