| 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_SYNC_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYNC_CLIENT_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYNC_CLIENT_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYNC_CLIENT_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 const std::vector<std::string>& to_upload); | 136 const std::vector<std::string>& to_upload); |
| 137 | 137 |
| 138 // Called when the resource IDs of pinned files are obtained. | 138 // Called when the resource IDs of pinned files are obtained. |
| 139 void OnGetResourceIdsOfExistingPinnedFiles( | 139 void OnGetResourceIdsOfExistingPinnedFiles( |
| 140 const std::vector<std::string>& resource_ids); | 140 const std::vector<std::string>& resource_ids); |
| 141 | 141 |
| 142 // Called when a file entry is obtained. | 142 // Called when a file entry is obtained. |
| 143 void OnGetEntryInfoByResourceId(const std::string& resource_id, | 143 void OnGetEntryInfoByResourceId(const std::string& resource_id, |
| 144 GDataFileError error, | 144 GDataFileError error, |
| 145 const FilePath& file_path, | 145 const FilePath& file_path, |
| 146 scoped_ptr<GDataEntryProto> entry_proto); | 146 scoped_ptr<DriveEntryProto> entry_proto); |
| 147 | 147 |
| 148 // Called when a cache entry is obtained. | 148 // Called when a cache entry is obtained. |
| 149 void OnGetCacheEntry(const std::string& resource_id, | 149 void OnGetCacheEntry(const std::string& resource_id, |
| 150 const std::string& latest_md5, | 150 const std::string& latest_md5, |
| 151 bool success, | 151 bool success, |
| 152 const GDataCacheEntry& cache_entry); | 152 const DriveCacheEntry& cache_entry); |
| 153 | 153 |
| 154 // Called when an existing cache entry and the local files are removed. | 154 // Called when an existing cache entry and the local files are removed. |
| 155 void OnRemove(GDataFileError error, | 155 void OnRemove(GDataFileError error, |
| 156 const std::string& resource_id, | 156 const std::string& resource_id, |
| 157 const std::string& md5); | 157 const std::string& md5); |
| 158 | 158 |
| 159 // Called when a file is pinned. | 159 // Called when a file is pinned. |
| 160 void OnPinned(GDataFileError error, | 160 void OnPinned(GDataFileError error, |
| 161 const std::string& resource_id, | 161 const std::string& resource_id, |
| 162 const std::string& md5); | 162 const std::string& md5); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 // Note: This should remain the last member so it'll be destroyed and | 201 // Note: This should remain the last member so it'll be destroyed and |
| 202 // invalidate its weak pointers before any other members are destroyed. | 202 // invalidate its weak pointers before any other members are destroyed. |
| 203 base::WeakPtrFactory<GDataSyncClient> weak_ptr_factory_; | 203 base::WeakPtrFactory<GDataSyncClient> weak_ptr_factory_; |
| 204 | 204 |
| 205 DISALLOW_COPY_AND_ASSIGN(GDataSyncClient); | 205 DISALLOW_COPY_AND_ASSIGN(GDataSyncClient); |
| 206 }; | 206 }; |
| 207 | 207 |
| 208 } // namespace gdata | 208 } // namespace gdata |
| 209 | 209 |
| 210 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYNC_CLIENT_H_ | 210 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYNC_CLIENT_H_ |
| OLD | NEW |