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" |
11 | 11 |
12 namespace fileapi { | 12 namespace fileapi { |
13 | 13 |
14 typedef base::Callback< | 14 typedef base::Callback< |
15 void(base::PlatformFileError result, | 15 void(base::PlatformFileError result, |
16 const FilePath& platform_path, | 16 const base::FilePath& platform_path, |
17 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref)> | 17 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref)> |
18 WritableSnapshotFile; | 18 WritableSnapshotFile; |
19 | 19 |
20 // The interface class for remote file system proxy. | 20 // The interface class for remote file system proxy. |
21 class RemoteFileSystemProxyInterface : | 21 class RemoteFileSystemProxyInterface : |
22 public base::RefCountedThreadSafe<RemoteFileSystemProxyInterface> { | 22 public base::RefCountedThreadSafe<RemoteFileSystemProxyInterface> { |
23 public: | 23 public: |
24 // Gets the file or directory info for given|path|. | 24 // Gets the file or directory info for given|path|. |
25 virtual void GetFileInfo(const FileSystemURL& url, | 25 virtual void GetFileInfo(const FileSystemURL& url, |
26 const FileSystemOperation::GetMetadataCallback& callback) = 0; | 26 const FileSystemOperation::GetMetadataCallback& callback) = 0; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 const FileSystemOperation::StatusCallback& callback) = 0; | 113 const FileSystemOperation::StatusCallback& callback) = 0; |
114 | 114 |
115 protected: | 115 protected: |
116 friend class base::RefCountedThreadSafe<RemoteFileSystemProxyInterface>; | 116 friend class base::RefCountedThreadSafe<RemoteFileSystemProxyInterface>; |
117 virtual ~RemoteFileSystemProxyInterface() {} | 117 virtual ~RemoteFileSystemProxyInterface() {} |
118 }; | 118 }; |
119 | 119 |
120 } // namespace fileapi | 120 } // namespace fileapi |
121 | 121 |
122 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_PROXY_H_ | 122 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_PROXY_H_ |
OLD | NEW |