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_WAPI_FEED_LOADER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_FEED_LOADER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_FEED_LOADER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_FEED_LOADER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 // This method makes a decision about fetching the content of the root feed | 186 // This method makes a decision about fetching the content of the root feed |
187 // during the root directory refresh process. | 187 // during the root directory refresh process. |
188 void OnGetAboutResource( | 188 void OnGetAboutResource( |
189 ContentOrigin initial_origin, | 189 ContentOrigin initial_origin, |
190 int64 local_changestamp, | 190 int64 local_changestamp, |
191 const FilePath& search_file_path, | 191 const FilePath& search_file_path, |
192 const FindEntryCallback& callback, | 192 const FindEntryCallback& callback, |
193 GDataErrorCode status, | 193 GDataErrorCode status, |
194 scoped_ptr<base::Value> feed_data); | 194 scoped_ptr<base::Value> feed_data); |
195 | 195 |
| 196 // Callback for handling response from |
| 197 // |GDataDocumentsService::GetApplicationList|. |
| 198 // If the application list is successfully parsed, passes the list to |
| 199 // Drive webapps registry. |
| 200 void OnGetApplicationList(GDataErrorCode status, |
| 201 scoped_ptr<base::Value> json); |
| 202 |
196 // Callback for handling feed content fetching while searching for file info. | 203 // Callback for handling feed content fetching while searching for file info. |
197 // This callback is invoked after async feed fetch operation that was | 204 // This callback is invoked after async feed fetch operation that was |
198 // invoked by StartDirectoryRefresh() completes. This callback will update | 205 // invoked by StartDirectoryRefresh() completes. This callback will update |
199 // the content of the refreshed directory object and continue initially | 206 // the content of the refreshed directory object and continue initially |
200 // started FindEntryByPath() request. | 207 // started FindEntryByPath() request. |
201 void OnFeedFromServerLoaded(GetDocumentsParams* params, | 208 void OnFeedFromServerLoaded(GetDocumentsParams* params, |
202 GDataFileError error); | 209 GDataFileError error); |
203 | 210 |
204 // Callback for handling response from |GDataDocumentsService::GetDocuments|. | 211 // Callback for handling response from |GDataDocumentsService::GetDocuments|. |
205 // Invokes |callback| when done. | 212 // Invokes |callback| when done. |
(...skipping 30 matching lines...) Expand all Loading... |
236 | 243 |
237 // Note: This should remain the last member so it'll be destroyed and | 244 // Note: This should remain the last member so it'll be destroyed and |
238 // invalidate its weak pointers before any other members are destroyed. | 245 // invalidate its weak pointers before any other members are destroyed. |
239 base::WeakPtrFactory<GDataWapiFeedLoader> weak_ptr_factory_; | 246 base::WeakPtrFactory<GDataWapiFeedLoader> weak_ptr_factory_; |
240 DISALLOW_COPY_AND_ASSIGN(GDataWapiFeedLoader); | 247 DISALLOW_COPY_AND_ASSIGN(GDataWapiFeedLoader); |
241 }; | 248 }; |
242 | 249 |
243 } // namespace gdata | 250 } // namespace gdata |
244 | 251 |
245 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_FEED_LOADER_H_ | 252 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_FEED_LOADER_H_ |
OLD | NEW |