| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "webkit/browser/fileapi/file_system_operation.h" | 10 #include "webkit/browser/fileapi/file_system_operation.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 int file_flags, | 70 int file_flags, |
| 71 base::ProcessHandle peer_handle, | 71 base::ProcessHandle peer_handle, |
| 72 const OpenFileCallback& callback) OVERRIDE; | 72 const OpenFileCallback& callback) OVERRIDE; |
| 73 virtual fileapi::LocalFileSystemOperation* | 73 virtual fileapi::LocalFileSystemOperation* |
| 74 AsLocalFileSystemOperation() OVERRIDE; | 74 AsLocalFileSystemOperation() OVERRIDE; |
| 75 virtual void CreateSnapshotFile( | 75 virtual void CreateSnapshotFile( |
| 76 const fileapi::FileSystemURL& url, | 76 const fileapi::FileSystemURL& url, |
| 77 const SnapshotFileCallback& callback) OVERRIDE; | 77 const SnapshotFileCallback& callback) OVERRIDE; |
| 78 | 78 |
| 79 private: | 79 private: |
| 80 friend class CrosMountPointProvider; | 80 friend class FileSystemBackend; |
| 81 | 81 |
| 82 RemoteFileSystemOperation( | 82 RemoteFileSystemOperation( |
| 83 scoped_refptr<fileapi::RemoteFileSystemProxyInterface> remote_proxy); | 83 scoped_refptr<fileapi::RemoteFileSystemProxyInterface> remote_proxy); |
| 84 | 84 |
| 85 // Used only for internal assertions. | 85 // Used only for internal assertions. |
| 86 // Returns false if there's another inflight pending operation. | 86 // Returns false if there's another inflight pending operation. |
| 87 bool SetPendingOperationType(OperationType type); | 87 bool SetPendingOperationType(OperationType type); |
| 88 | 88 |
| 89 // Generic callback that translates platform errors to WebKit error codes. | 89 // Generic callback that translates platform errors to WebKit error codes. |
| 90 void DidDirectoryExists(const StatusCallback& callback, | 90 void DidDirectoryExists(const StatusCallback& callback, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 112 scoped_ptr<fileapi::FileWriterDelegate> file_writer_delegate_; | 112 scoped_ptr<fileapi::FileWriterDelegate> file_writer_delegate_; |
| 113 | 113 |
| 114 StatusCallback cancel_callback_; | 114 StatusCallback cancel_callback_; |
| 115 | 115 |
| 116 DISALLOW_COPY_AND_ASSIGN(RemoteFileSystemOperation); | 116 DISALLOW_COPY_AND_ASSIGN(RemoteFileSystemOperation); |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace chromeos | 119 } // namespace chromeos |
| 120 | 120 |
| 121 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ | 121 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ |
| OLD | NEW |