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_DRIVE_CHANGE_LIST_LOADER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_CHANGE_LIST_LOADER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_CHANGE_LIST_LOADER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_CHANGE_LIST_LOADER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 void LoadAfterGetAboutResource( | 177 void LoadAfterGetAboutResource( |
178 int64 local_changestamp, | 178 int64 local_changestamp, |
179 google_apis::GDataErrorCode status, | 179 google_apis::GDataErrorCode status, |
180 scoped_ptr<google_apis::AboutResource> about_resource); | 180 scoped_ptr<google_apis::AboutResource> about_resource); |
181 | 181 |
182 // Part of Load(). | 182 // Part of Load(). |
183 // This function should be called when the change list load is complete. | 183 // This function should be called when the change list load is complete. |
184 // Flushes the callbacks for change list loading and all directory loading. | 184 // Flushes the callbacks for change list loading and all directory loading. |
185 void OnChangeListLoadComplete(FileError error); | 185 void OnChangeListLoadComplete(FileError error); |
186 | 186 |
| 187 // Called when the loading about_resource_loader_->UpdateAboutResource is |
| 188 // completed. |
| 189 void OnAboutResourceUpdated(google_apis::GDataErrorCode error, |
| 190 scoped_ptr<google_apis::AboutResource> resource); |
| 191 |
187 // ================= Implementation for change list loading ================= | 192 // ================= Implementation for change list loading ================= |
188 | 193 |
189 // Part of LoadFromServerIfNeeded(). | 194 // Part of LoadFromServerIfNeeded(). |
190 // Starts loading the change list since |start_changestamp|, or the full | 195 // Starts loading the change list since |start_changestamp|, or the full |
191 // resource list if |start_changestamp| is zero. | 196 // resource list if |start_changestamp| is zero. |
192 void LoadChangeListFromServer(int64 start_changestamp); | 197 void LoadChangeListFromServer(int64 start_changestamp); |
193 | 198 |
194 // Part of LoadChangeListFromServer(). | 199 // Part of LoadChangeListFromServer(). |
195 // Called when the entire change list is loaded. | 200 // Called when the entire change list is loaded. |
196 void LoadChangeListFromServerAfterLoadChangeList( | 201 void LoadChangeListFromServerAfterLoadChangeList( |
(...skipping 30 matching lines...) Expand all Loading... |
227 // Note: This should remain the last member so it'll be destroyed and | 232 // Note: This should remain the last member so it'll be destroyed and |
228 // invalidate its weak pointers before any other members are destroyed. | 233 // invalidate its weak pointers before any other members are destroyed. |
229 base::WeakPtrFactory<ChangeListLoader> weak_ptr_factory_; | 234 base::WeakPtrFactory<ChangeListLoader> weak_ptr_factory_; |
230 DISALLOW_COPY_AND_ASSIGN(ChangeListLoader); | 235 DISALLOW_COPY_AND_ASSIGN(ChangeListLoader); |
231 }; | 236 }; |
232 | 237 |
233 } // namespace internal | 238 } // namespace internal |
234 } // namespace drive | 239 } // namespace drive |
235 | 240 |
236 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_CHANGE_LIST_LOADER_H_ | 241 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_CHANGE_LIST_LOADER_H_ |
OLD | NEW |