Chromium Code Reviews| 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_GDATA_FILE_SYSTEM_PROXY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" | 8 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" |
| 9 #include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h" | |
| 9 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h" | 10 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h" |
| 10 | 11 |
| 11 class Profile; | 12 class Profile; |
| 12 | 13 |
| 13 namespace fileapi { | 14 namespace fileapi { |
| 14 class FileSystemURL; | 15 class FileSystemURL; |
| 15 } | 16 } |
| 16 | 17 |
| 17 namespace gdata { | 18 namespace gdata { |
| 18 | 19 |
| 19 class GDataEntry; | 20 class GDataEntry; |
| 20 class GDataEntryProto; | 21 class GDataEntryProto; |
| 21 class GDataDirectoryProto; | |
| 22 class GDataFileSystemInterface; | 22 class GDataFileSystemInterface; |
| 23 | 23 |
| 24 // The interface class for remote file system proxy. | 24 // The interface class for remote file system proxy. |
| 25 class GDataFileSystemProxy : public fileapi::RemoteFileSystemProxyInterface { | 25 class GDataFileSystemProxy : public fileapi::RemoteFileSystemProxyInterface { |
| 26 public: | 26 public: |
| 27 // |profile| is used to create GDataFileSystem, which is a per-profile | 27 // |profile| is used to create GDataFileSystem, which is a per-profile |
| 28 // instance. | 28 // instance. |
| 29 explicit GDataFileSystemProxy(GDataFileSystemInterface* file_system); | 29 explicit GDataFileSystemProxy(GDataFileSystemInterface* file_system); |
| 30 | 30 |
| 31 // fileapi::RemoteFileSystemProxyInterface overrides. | 31 // fileapi::RemoteFileSystemProxyInterface overrides. |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 115 GDataFileError error, | 115 GDataFileError error, |
| 116 scoped_ptr<GDataEntryProto> entry_proto); | 116 scoped_ptr<GDataEntryProto> entry_proto); |
| 117 | 117 |
| 118 // Helper callback for relaying reply for ReadDirectory() to the calling | 118 // Helper callback for relaying reply for ReadDirectory() to the calling |
| 119 // thread. | 119 // thread. |
| 120 void OnReadDirectory( | 120 void OnReadDirectory( |
| 121 const fileapi::FileSystemOperationInterface::ReadDirectoryCallback& | 121 const fileapi::FileSystemOperationInterface::ReadDirectoryCallback& |
| 122 callback, | 122 callback, |
| 123 GDataFileError error, | 123 GDataFileError error, |
| 124 bool hide_hosted_documents, | 124 bool hide_hosted_documents, |
| 125 scoped_ptr<GDataDirectoryProto> directory_proto); | 125 scoped_ptr<gdata::GDataEntryProtoVector> proto_entries); |
|
achuithb
2012/07/21 22:34:19
nit: Don't think you need gdata::
satorux1
2012/07/21 23:23:36
There are many places gdata:: prefix is used in th
| |
| 126 | 126 |
| 127 // Helper callback for relaying reply for CreateWritableSnapshotFile() to | 127 // Helper callback for relaying reply for CreateWritableSnapshotFile() to |
| 128 // the calling thread. | 128 // the calling thread. |
| 129 void OnCreateWritableSnapshotFile( | 129 void OnCreateWritableSnapshotFile( |
| 130 const FilePath& virtual_path, | 130 const FilePath& virtual_path, |
| 131 const fileapi::WritableSnapshotFile& callback, | 131 const fileapi::WritableSnapshotFile& callback, |
| 132 GDataFileError result, | 132 GDataFileError result, |
| 133 const FilePath& local_path); | 133 const FilePath& local_path); |
| 134 | 134 |
| 135 // Helper callback for closing the local cache file and committing the dirty | 135 // Helper callback for closing the local cache file and committing the dirty |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 185 // GDataFileSystemProxy is owned by Profile, which outlives | 185 // GDataFileSystemProxy is owned by Profile, which outlives |
| 186 // GDataFileSystemProxy, which is owned by CrosMountPointProvider (i.e. by | 186 // GDataFileSystemProxy, which is owned by CrosMountPointProvider (i.e. by |
| 187 // the time Profile is removed, the file manager is already gone). Hence | 187 // the time Profile is removed, the file manager is already gone). Hence |
| 188 // it's safe to use this as a raw pointer. | 188 // it's safe to use this as a raw pointer. |
| 189 GDataFileSystemInterface* file_system_; | 189 GDataFileSystemInterface* file_system_; |
| 190 }; | 190 }; |
| 191 | 191 |
| 192 } // namespace chromeos | 192 } // namespace chromeos |
| 193 | 193 |
| 194 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ | 194 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ |
| OLD | NEW |