Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.h

Issue 10829276: Get web application list using Drive V2 API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unittest compile. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // This method makes a decision about fetching the content of the root feed 168 // This method makes a decision about fetching the content of the root feed
169 // during the root directory refresh process. 169 // during the root directory refresh process.
170 void OnGetAboutResource( 170 void OnGetAboutResource(
171 ContentOrigin initial_origin, 171 ContentOrigin initial_origin,
172 int64 local_changestamp, 172 int64 local_changestamp,
173 const FilePath& search_file_path, 173 const FilePath& search_file_path,
174 const FindEntryCallback& callback, 174 const FindEntryCallback& callback,
175 GDataErrorCode status, 175 GDataErrorCode status,
176 scoped_ptr<base::Value> feed_data); 176 scoped_ptr<base::Value> feed_data);
177 177
178 // Callback for handling response from
179 // |GDataDocumentsService::GetApplicationList|.
180 // If the application list is successfully parsed, passes the list to
181 // Drive webapps registry.
182 void OnGetApplicationList(GDataErrorCode status,
183 scoped_ptr<base::Value> json);
184
178 // Callback for handling feed content fetching while searching for file info. 185 // Callback for handling feed content fetching while searching for file info.
179 // This callback is invoked after async feed fetch operation that was 186 // This callback is invoked after async feed fetch operation that was
180 // invoked by StartDirectoryRefresh() completes. This callback will update 187 // invoked by StartDirectoryRefresh() completes. This callback will update
181 // the content of the refreshed directory object and continue initially 188 // the content of the refreshed directory object and continue initially
182 // started FindEntryByPath() request. 189 // started FindEntryByPath() request.
183 void OnFeedFromServerLoaded(GetDocumentsParams* params, 190 void OnFeedFromServerLoaded(GetDocumentsParams* params,
184 GDataFileError error); 191 GDataFileError error);
185 192
186 // Callback for handling response from |GDataDocumentsService::GetDocuments|. 193 // Callback for handling response from |GDataDocumentsService::GetDocuments|.
187 // Invokes |callback| when done. 194 // Invokes |callback| when done.
(...skipping 21 matching lines...) Expand all
209 216
210 // Note: This should remain the last member so it'll be destroyed and 217 // Note: This should remain the last member so it'll be destroyed and
211 // invalidate its weak pointers before any other members are destroyed. 218 // invalidate its weak pointers before any other members are destroyed.
212 base::WeakPtrFactory<GDataWapiFeedLoader> weak_ptr_factory_; 219 base::WeakPtrFactory<GDataWapiFeedLoader> weak_ptr_factory_;
213 DISALLOW_COPY_AND_ASSIGN(GDataWapiFeedLoader); 220 DISALLOW_COPY_AND_ASSIGN(GDataWapiFeedLoader);
214 }; 221 };
215 222
216 } // namespace gdata 223 } // namespace gdata
217 224
218 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_FEED_LOADER_H_ 225 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_FEED_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698