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/isolated_mount_point_provider.h" | 5 #include "webkit/fileapi/isolated_mount_point_provider.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 std::string fsid; | 113 std::string fsid; |
114 FilePath path; | 114 FilePath path; |
115 if (!isolated_context()->CrackIsolatedPath(virtual_path, &fsid, NULL, &path)) | 115 if (!isolated_context()->CrackIsolatedPath(virtual_path, &fsid, NULL, &path)) |
116 return NULL; | 116 return NULL; |
117 if (path.empty()) | 117 if (path.empty()) |
118 return NULL; | 118 return NULL; |
119 return new webkit_blob::LocalFileReader( | 119 return new webkit_blob::LocalFileReader( |
120 context->file_task_runner(), path, offset, base::Time()); | 120 context->file_task_runner(), path, offset, base::Time()); |
121 } | 121 } |
122 | 122 |
| 123 FileSystemQuotaUtil* IsolatedMountPointProvider::GetQuotaUtil() { |
| 124 // No quota support. |
| 125 return NULL; |
| 126 } |
| 127 |
123 IsolatedContext* IsolatedMountPointProvider::isolated_context() const { | 128 IsolatedContext* IsolatedMountPointProvider::isolated_context() const { |
124 return IsolatedContext::GetInstance(); | 129 return IsolatedContext::GetInstance(); |
125 } | 130 } |
126 | 131 |
127 } // namespace fileapi | 132 } // namespace fileapi |
OLD | NEW |