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

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 for comments. 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 21 matching lines...) Expand all
227 234
228 // Note: This should remain the last member so it'll be destroyed and 235 // Note: This should remain the last member so it'll be destroyed and
229 // invalidate its weak pointers before any other members are destroyed. 236 // invalidate its weak pointers before any other members are destroyed.
230 base::WeakPtrFactory<GDataWapiFeedLoader> weak_ptr_factory_; 237 base::WeakPtrFactory<GDataWapiFeedLoader> weak_ptr_factory_;
231 DISALLOW_COPY_AND_ASSIGN(GDataWapiFeedLoader); 238 DISALLOW_COPY_AND_ASSIGN(GDataWapiFeedLoader);
232 }; 239 };
233 240
234 } // namespace gdata 241 } // namespace gdata
235 242
236 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_FEED_LOADER_H_ 243 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_FEED_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698