| 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_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ | 5 #ifndef WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ |
| 6 #define WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ | 6 #define WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ |
| 7 | 7 |
| 8 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h" | 8 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h" |
| 9 #include "webkit/fileapi/file_system_operation_interface.h" | 9 #include "webkit/fileapi/file_system_operation_interface.h" |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 virtual void Cancel(const StatusCallback& cancel_callback) OVERRIDE; | 57 virtual void Cancel(const StatusCallback& cancel_callback) OVERRIDE; |
| 58 virtual void TouchFile(const GURL& path, | 58 virtual void TouchFile(const GURL& path, |
| 59 const base::Time& last_access_time, | 59 const base::Time& last_access_time, |
| 60 const base::Time& last_modified_time, | 60 const base::Time& last_modified_time, |
| 61 const StatusCallback& callback) OVERRIDE; | 61 const StatusCallback& callback) OVERRIDE; |
| 62 virtual void OpenFile( | 62 virtual void OpenFile( |
| 63 const GURL& path, | 63 const GURL& path, |
| 64 int file_flags, | 64 int file_flags, |
| 65 base::ProcessHandle peer_handle, | 65 base::ProcessHandle peer_handle, |
| 66 const OpenFileCallback& callback) OVERRIDE; | 66 const OpenFileCallback& callback) OVERRIDE; |
| 67 virtual void NotifyCloseFile(const GURL& path, |
| 68 const StatusCallback& callback) OVERRIDE; |
| 67 virtual fileapi::FileSystemOperation* AsFileSystemOperation() OVERRIDE; | 69 virtual fileapi::FileSystemOperation* AsFileSystemOperation() OVERRIDE; |
| 68 virtual void CreateSnapshotFile( | 70 virtual void CreateSnapshotFile( |
| 69 const GURL& path, | 71 const GURL& path, |
| 70 const SnapshotFileCallback& callback) OVERRIDE; | 72 const SnapshotFileCallback& callback) OVERRIDE; |
| 71 | 73 |
| 72 private: | 74 private: |
| 73 friend class CrosMountPointProvider; | 75 friend class CrosMountPointProvider; |
| 74 | 76 |
| 75 RemoteFileSystemOperation( | 77 RemoteFileSystemOperation( |
| 76 scoped_refptr<fileapi::RemoteFileSystemProxyInterface> remote_proxy); | 78 scoped_refptr<fileapi::RemoteFileSystemProxyInterface> remote_proxy); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 scoped_refptr<fileapi::RemoteFileSystemProxyInterface> remote_proxy_; | 112 scoped_refptr<fileapi::RemoteFileSystemProxyInterface> remote_proxy_; |
| 111 // A flag to make sure we call operation only once per instance. | 113 // A flag to make sure we call operation only once per instance. |
| 112 OperationType pending_operation_; | 114 OperationType pending_operation_; |
| 113 | 115 |
| 114 DISALLOW_COPY_AND_ASSIGN(RemoteFileSystemOperation); | 116 DISALLOW_COPY_AND_ASSIGN(RemoteFileSystemOperation); |
| 115 }; | 117 }; |
| 116 | 118 |
| 117 } // namespace chromeos | 119 } // namespace chromeos |
| 118 | 120 |
| 119 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ | 121 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ |
| OLD | NEW |