| 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_PROXY_H_ | 5 #ifndef WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_PROXY_H_ |
| 6 #define WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_PROXY_H_ | 6 #define WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "webkit/fileapi/file_system_operation.h" | 10 #include "webkit/fileapi/file_system_operation.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // base::PlatformFileFlags for details). | 96 // base::PlatformFileFlags for details). |
| 97 virtual void OpenFile( | 97 virtual void OpenFile( |
| 98 const FileSystemURL& url, | 98 const FileSystemURL& url, |
| 99 int flags, | 99 int flags, |
| 100 base::ProcessHandle peer_handle, | 100 base::ProcessHandle peer_handle, |
| 101 const FileSystemOperation::OpenFileCallback& callback) = 0; | 101 const FileSystemOperation::OpenFileCallback& callback) = 0; |
| 102 | 102 |
| 103 // Notifies that a file opened by OpenFile (at |path|) is closed. | 103 // Notifies that a file opened by OpenFile (at |path|) is closed. |
| 104 virtual void NotifyCloseFile(const FileSystemURL& url) = 0; | 104 virtual void NotifyCloseFile(const FileSystemURL& url) = 0; |
| 105 | 105 |
| 106 // TODO(zelidrag): More methods to follow as we implement other parts of FSO. | 106 // Modifies the timestamp of a given |url| to |last_access_time| and |
| 107 // |last_modified_time|. Note that unlike 'touch' command of Linux, it |
| 108 // does not create a new file. |
| 109 virtual void TouchFile( |
| 110 const fileapi::FileSystemURL& url, |
| 111 const base::Time& last_access_time, |
| 112 const base::Time& last_modified_time, |
| 113 const FileSystemOperation::StatusCallback& callback) = 0; |
| 107 | 114 |
| 108 protected: | 115 protected: |
| 109 friend class base::RefCountedThreadSafe<RemoteFileSystemProxyInterface>; | 116 friend class base::RefCountedThreadSafe<RemoteFileSystemProxyInterface>; |
| 110 virtual ~RemoteFileSystemProxyInterface() {} | 117 virtual ~RemoteFileSystemProxyInterface() {} |
| 111 }; | 118 }; |
| 112 | 119 |
| 113 } // namespace fileapi | 120 } // namespace fileapi |
| 114 | 121 |
| 115 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_PROXY_H_ | 122 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_PROXY_H_ |
| OLD | NEW |