| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 const GURL& path, | 87 const GURL& path, |
| 88 const WritableSnapshotFile& callback) = 0; | 88 const WritableSnapshotFile& callback) = 0; |
| 89 | 89 |
| 90 // Opens file for a give |path| with specified |flags| (see | 90 // Opens file for a give |path| with specified |flags| (see |
| 91 // base::PlatformFileFlags for details). | 91 // base::PlatformFileFlags for details). |
| 92 virtual void OpenFile( | 92 virtual void OpenFile( |
| 93 const GURL& path, | 93 const GURL& path, |
| 94 int flags, | 94 int flags, |
| 95 base::ProcessHandle peer_handle, | 95 base::ProcessHandle peer_handle, |
| 96 const FileSystemOperationInterface::OpenFileCallback& callback) = 0; | 96 const FileSystemOperationInterface::OpenFileCallback& callback) = 0; |
| 97 |
| 98 // Notifies that a file opened by OpenFile (at |path|) is closed. |
| 99 virtual void NotifyCloseFile(const GURL& path) = 0; |
| 100 |
| 97 // 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. |
| 98 }; | 102 }; |
| 99 | 103 |
| 100 } // namespace fileapi | 104 } // namespace fileapi |
| 101 | 105 |
| 102 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_PROXY_H_ | 106 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_PROXY_H_ |
| OLD | NEW |