| 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 #ifndef WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ |
| 6 #define WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // | 159 // |
| 160 void MoveFileLocal(const FileSystemURL& src_url, | 160 void MoveFileLocal(const FileSystemURL& src_url, |
| 161 const FileSystemURL& dest_url, | 161 const FileSystemURL& dest_url, |
| 162 const StatusCallback& callback); | 162 const StatusCallback& callback); |
| 163 | 163 |
| 164 // Synchronously gets the platform path for the given |url|. | 164 // Synchronously gets the platform path for the given |url|. |
| 165 void SyncGetPlatformPath(const FileSystemURL& url, | 165 void SyncGetPlatformPath(const FileSystemURL& url, |
| 166 base::FilePath* platform_path); | 166 base::FilePath* platform_path); |
| 167 | 167 |
| 168 FileSystemContext* file_system_context() const { | 168 FileSystemContext* file_system_context() const { |
| 169 return file_system_context_; | 169 return file_system_context_.get(); |
| 170 } | 170 } |
| 171 | 171 |
| 172 FileSystemOperationContext* operation_context() const { | 172 FileSystemOperationContext* operation_context() const { |
| 173 if (parent_operation_) | 173 if (parent_operation_) |
| 174 return parent_operation_->operation_context(); | 174 return parent_operation_->operation_context(); |
| 175 return operation_context_.get(); | 175 return operation_context_.get(); |
| 176 } | 176 } |
| 177 | 177 |
| 178 private: | 178 private: |
| 179 enum OperationMode { | 179 enum OperationMode { |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 // LocalFileSystemOperation instance is usually deleted upon completion but | 332 // LocalFileSystemOperation instance is usually deleted upon completion but |
| 333 // could be deleted while it has inflight callbacks when Cancel is called. | 333 // could be deleted while it has inflight callbacks when Cancel is called. |
| 334 base::WeakPtrFactory<LocalFileSystemOperation> weak_factory_; | 334 base::WeakPtrFactory<LocalFileSystemOperation> weak_factory_; |
| 335 | 335 |
| 336 DISALLOW_COPY_AND_ASSIGN(LocalFileSystemOperation); | 336 DISALLOW_COPY_AND_ASSIGN(LocalFileSystemOperation); |
| 337 }; | 337 }; |
| 338 | 338 |
| 339 } // namespace fileapi | 339 } // namespace fileapi |
| 340 | 340 |
| 341 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ | 341 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ |
| OLD | NEW |