| 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/test_mount_point_provider.h" | 5 #include "webkit/fileapi/test_mount_point_provider.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 return local_file_util_.get(); | 116 return local_file_util_.get(); |
| 117 } | 117 } |
| 118 | 118 |
| 119 FilePath TestMountPointProvider::GetPathForPermissionsCheck( | 119 FilePath TestMountPointProvider::GetPathForPermissionsCheck( |
| 120 const FilePath& virtual_path) const { | 120 const FilePath& virtual_path) const { |
| 121 return base_path_.Append(virtual_path); | 121 return base_path_.Append(virtual_path); |
| 122 } | 122 } |
| 123 | 123 |
| 124 FileSystemOperation* TestMountPointProvider::CreateFileSystemOperation( | 124 FileSystemOperation* TestMountPointProvider::CreateFileSystemOperation( |
| 125 const FileSystemURL& url, | 125 const FileSystemURL& url, |
| 126 FileSystemContext* context) const { | 126 FileSystemContext* context, |
| 127 base::PlatformFileError* error_code) const { |
| 127 scoped_ptr<FileSystemOperationContext> operation_context( | 128 scoped_ptr<FileSystemOperationContext> operation_context( |
| 128 new FileSystemOperationContext(context)); | 129 new FileSystemOperationContext(context)); |
| 129 operation_context->set_update_observers(observers_); | 130 operation_context->set_update_observers(observers_); |
| 130 return new LocalFileSystemOperation(context, operation_context.Pass()); | 131 return new LocalFileSystemOperation(context, operation_context.Pass()); |
| 131 } | 132 } |
| 132 | 133 |
| 133 webkit_blob::FileStreamReader* TestMountPointProvider::CreateFileStreamReader( | 134 webkit_blob::FileStreamReader* TestMountPointProvider::CreateFileStreamReader( |
| 134 const FileSystemURL& url, | 135 const FileSystemURL& url, |
| 135 int64 offset, | 136 int64 offset, |
| 136 FileSystemContext* context) const { | 137 FileSystemContext* context) const { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 158 NOTREACHED(); | 159 NOTREACHED(); |
| 159 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); | 160 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); |
| 160 } | 161 } |
| 161 | 162 |
| 162 const UpdateObserverList* TestMountPointProvider::GetUpdateObservers( | 163 const UpdateObserverList* TestMountPointProvider::GetUpdateObservers( |
| 163 FileSystemType type) const { | 164 FileSystemType type) const { |
| 164 return &observers_; | 165 return &observers_; |
| 165 } | 166 } |
| 166 | 167 |
| 167 } // namespace fileapi | 168 } // namespace fileapi |
| OLD | NEW |