| 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 CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILE_SYSTEM_PROXY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILE_SYSTEM_PROXY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILE_SYSTEM_PROXY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILE_SYSTEM_PROXY_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/chromeos/gdata/drive_file_system_interface.h" | 8 #include "chrome/browser/chromeos/gdata/drive_file_system_interface.h" |
| 9 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" | 9 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" |
| 10 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h" | 10 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h" |
| 11 | 11 |
| 12 namespace fileapi { | 12 namespace fileapi { |
| 13 class FileSystemURL; | 13 class FileSystemURL; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace gdata { | 16 namespace gdata { |
| 17 | 17 |
| 18 class DriveEntryProto; | 18 class DriveEntryProto; |
| 19 class DriveFileSystemInterface; | 19 class DriveFileSystemInterface; |
| 20 | 20 |
| 21 typedef std::vector<DriveEntryProto> DriveEntryProtoVector; | 21 typedef std::vector<DriveEntryProto> DriveEntryProtoVector; |
| 22 | 22 |
| 23 // Implementation of File API's remote file system proxy for Drive file system. | 23 // Implementation of File API's remote file system proxy for Drive file system. |
| 24 class DriveFileSystemProxy : public fileapi::RemoteFileSystemProxyInterface { | 24 class DriveFileSystemProxy : public fileapi::RemoteFileSystemProxyInterface { |
| 25 public: | 25 public: |
| 26 // |file_system| is the DriveFileSystem instance owned by GDataSystemService. | 26 // |file_system| is the DriveFileSystem instance owned by DriveSystemService. |
| 27 explicit DriveFileSystemProxy(DriveFileSystemInterface* file_system); | 27 explicit DriveFileSystemProxy(DriveFileSystemInterface* file_system); |
| 28 | 28 |
| 29 // fileapi::RemoteFileSystemProxyInterface overrides. | 29 // fileapi::RemoteFileSystemProxyInterface overrides. |
| 30 virtual void GetFileInfo( | 30 virtual void GetFileInfo( |
| 31 const fileapi::FileSystemURL& url, | 31 const fileapi::FileSystemURL& url, |
| 32 const fileapi::FileSystemOperationInterface::GetMetadataCallback& | 32 const fileapi::FileSystemOperationInterface::GetMetadataCallback& |
| 33 callback) OVERRIDE; | 33 callback) OVERRIDE; |
| 34 virtual void Copy( | 34 virtual void Copy( |
| 35 const fileapi::FileSystemURL& src_url, | 35 const fileapi::FileSystemURL& src_url, |
| 36 const fileapi::FileSystemURL& dest_url, | 36 const fileapi::FileSystemURL& dest_url, |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 // DriveFileSystem is owned by Profile, which outlives DriveFileSystemProxy, | 183 // DriveFileSystem is owned by Profile, which outlives DriveFileSystemProxy, |
| 184 // which is owned by CrosMountPointProvider (i.e. by the time Profile is | 184 // which is owned by CrosMountPointProvider (i.e. by the time Profile is |
| 185 // removed, the file manager is already gone). Hence it's safe to use this as | 185 // removed, the file manager is already gone). Hence it's safe to use this as |
| 186 // a raw pointer. | 186 // a raw pointer. |
| 187 DriveFileSystemInterface* file_system_; | 187 DriveFileSystemInterface* file_system_; |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 } // namespace chromeos | 190 } // namespace chromeos |
| 191 | 191 |
| 192 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILE_SYSTEM_PROXY_H_ | 192 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILE_SYSTEM_PROXY_H_ |
| OLD | NEW |