| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h" | 9 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h" |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // Helper callback for relaying reply for metadata retrieval request to the | 62 // Helper callback for relaying reply for metadata retrieval request to the |
| 63 // calling thread. | 63 // calling thread. |
| 64 void OnGetMetadata( | 64 void OnGetMetadata( |
| 65 const FilePath& file_path, | 65 const FilePath& file_path, |
| 66 const fileapi::FileSystemOperationInterface::GetMetadataCallback& | 66 const fileapi::FileSystemOperationInterface::GetMetadataCallback& |
| 67 callback, | 67 callback, |
| 68 base::PlatformFileError error, | 68 base::PlatformFileError error, |
| 69 const FilePath& entry_path, | 69 const FilePath& entry_path, |
| 70 scoped_ptr<gdata::GDataEntryProto> entry_proto); | 70 scoped_ptr<gdata::GDataEntryProto> entry_proto); |
| 71 | 71 |
| 72 // Helper callback for relaying reply for GetEntryInfoByPathAsync() to the |
| 73 // calling thread. |
| 74 void OnGetEntryInfoByPathAsync( |
| 75 const fileapi::FileSystemOperationInterface::SnapshotFileCallback& |
| 76 callback, |
| 77 base::PlatformFileError error, |
| 78 const FilePath& entry_path, |
| 79 scoped_ptr<GDataEntryProto> entry_proto); |
| 80 |
| 72 // Helper callback for relaying reply for ReadDirectory() to the calling | 81 // Helper callback for relaying reply for ReadDirectory() to the calling |
| 73 // thread. | 82 // thread. |
| 74 void OnReadDirectory( | 83 void OnReadDirectory( |
| 75 bool hide_hosted_documents, | 84 bool hide_hosted_documents, |
| 76 const fileapi::FileSystemOperationInterface::ReadDirectoryCallback& | 85 const fileapi::FileSystemOperationInterface::ReadDirectoryCallback& |
| 77 callback, | 86 callback, |
| 78 base::PlatformFileError error, | 87 base::PlatformFileError error, |
| 79 scoped_ptr<GDataDirectoryProto> directory_proto); | 88 scoped_ptr<GDataDirectoryProto> directory_proto); |
| 80 | 89 |
| 81 // GDataFileSystemProxy is owned by Profile, which outlives | 90 // GDataFileSystemProxy is owned by Profile, which outlives |
| 82 // GDataFileSystemProxy, which is owned by CrosMountPointProvider (i.e. by | 91 // GDataFileSystemProxy, which is owned by CrosMountPointProvider (i.e. by |
| 83 // the time Profile is removed, the file manager is already gone). Hence | 92 // the time Profile is removed, the file manager is already gone). Hence |
| 84 // it's safe to use this as a raw pointer. | 93 // it's safe to use this as a raw pointer. |
| 85 GDataFileSystemInterface* file_system_; | 94 GDataFileSystemInterface* file_system_; |
| 86 }; | 95 }; |
| 87 | 96 |
| 88 } // namespace chromeos | 97 } // namespace chromeos |
| 89 | 98 |
| 90 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ | 99 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ |
| OLD | NEW |