| 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_interface.h" | 10 #include "webkit/fileapi/file_system_operation_interface.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 const GURL& path, | 85 const GURL& path, |
| 86 const WritableSnapshotFile& callback) = 0; | 86 const WritableSnapshotFile& callback) = 0; |
| 87 | 87 |
| 88 // Opens file for a give |path| with specified |flags| (see | 88 // Opens file for a give |path| with specified |flags| (see |
| 89 // base::PlatformFileFlags for details). | 89 // base::PlatformFileFlags for details). |
| 90 virtual void OpenFile( | 90 virtual void OpenFile( |
| 91 const GURL& path, | 91 const GURL& path, |
| 92 int flags, | 92 int flags, |
| 93 base::ProcessHandle peer_handle, | 93 base::ProcessHandle peer_handle, |
| 94 const FileSystemOperationInterface::OpenFileCallback& callback) = 0; | 94 const FileSystemOperationInterface::OpenFileCallback& callback) = 0; |
| 95 |
| 96 // Notifies file system than file at |path| has been closed. |
| 97 virtual void NotifyFileClosed( |
| 98 const GURL& path, |
| 99 const FileSystemOperationInterface::StatusCallback& callback) = 0; |
| 100 |
| 95 // TODO(zelidrag): More methods to follow as we implement other parts of FSO. | 101 // TODO(zelidrag): More methods to follow as we implement other parts of FSO. |
| 96 | 102 |
| 97 protected: | 103 protected: |
| 98 friend class base::RefCountedThreadSafe<RemoteFileSystemProxyInterface>; | 104 friend class base::RefCountedThreadSafe<RemoteFileSystemProxyInterface>; |
| 99 virtual ~RemoteFileSystemProxyInterface() {} | 105 virtual ~RemoteFileSystemProxyInterface() {} |
| 100 }; | 106 }; |
| 101 | 107 |
| 102 } // namespace fileapi | 108 } // namespace fileapi |
| 103 | 109 |
| 104 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_PROXY_H_ | 110 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_PROXY_H_ |
| OLD | NEW |