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

Side by Side Diff: chrome/browser/drive/drive_service_interface.h

Issue 22909041: Refactor GetAboutRequest and GetApplistRequest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « chrome/browser/drive/drive_api_service.cc ('k') | chrome/browser/drive/dummy_drive_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DRIVE_DRIVE_SERVICE_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_
6 #define CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_ 6 #define CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/google_apis/auth_service_interface.h" 10 #include "chrome/browser/google_apis/auth_service_interface.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // calling thread. |callback| must not be null. 159 // calling thread. |callback| must not be null.
160 virtual google_apis::CancelCallback GetShareUrl( 160 virtual google_apis::CancelCallback GetShareUrl(
161 const std::string& resource_id, 161 const std::string& resource_id,
162 const GURL& embed_origin, 162 const GURL& embed_origin,
163 const google_apis::GetShareUrlCallback& callback) = 0; 163 const google_apis::GetShareUrlCallback& callback) = 0;
164 164
165 // Gets the about resource information from the server. 165 // Gets the about resource information from the server.
166 // Upon completion, invokes |callback| with results on the calling thread. 166 // Upon completion, invokes |callback| with results on the calling thread.
167 // |callback| must not be null. 167 // |callback| must not be null.
168 virtual google_apis::CancelCallback GetAboutResource( 168 virtual google_apis::CancelCallback GetAboutResource(
169 const google_apis::GetAboutResourceCallback& callback) = 0; 169 const google_apis::AboutResourceCallback& callback) = 0;
170 170
171 // Gets the application information from the server. 171 // Gets the application information from the server.
172 // Upon completion, invokes |callback| with results on the calling thread. 172 // Upon completion, invokes |callback| with results on the calling thread.
173 // |callback| must not be null. 173 // |callback| must not be null.
174 virtual google_apis::CancelCallback GetAppList( 174 virtual google_apis::CancelCallback GetAppList(
175 const google_apis::GetAppListCallback& callback) = 0; 175 const google_apis::AppListCallback& callback) = 0;
176 176
177 // Deletes a resource identified by its |resource_id|. 177 // Deletes a resource identified by its |resource_id|.
178 // If |etag| is not empty and did not match, the deletion fails with 178 // If |etag| is not empty and did not match, the deletion fails with
179 // HTTP_PRECONDITION error. 179 // HTTP_PRECONDITION error.
180 // Upon completion, invokes |callback| with results on the calling thread. 180 // Upon completion, invokes |callback| with results on the calling thread.
181 // |callback| must not be null. 181 // |callback| must not be null.
182 virtual google_apis::CancelCallback DeleteResource( 182 virtual google_apis::CancelCallback DeleteResource(
183 const std::string& resource_id, 183 const std::string& resource_id,
184 const std::string& etag, 184 const std::string& etag,
185 const google_apis::EntryActionCallback& callback) = 0; 185 const google_apis::EntryActionCallback& callback) = 0;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 // the provided app. |callback| must not be null. 339 // the provided app. |callback| must not be null.
340 virtual google_apis::CancelCallback AuthorizeApp( 340 virtual google_apis::CancelCallback AuthorizeApp(
341 const std::string& resource_id, 341 const std::string& resource_id,
342 const std::string& app_id, 342 const std::string& app_id,
343 const google_apis::AuthorizeAppCallback& callback) = 0; 343 const google_apis::AuthorizeAppCallback& callback) = 0;
344 }; 344 };
345 345
346 } // namespace drive 346 } // namespace drive
347 347
348 #endif // CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_ 348 #endif // CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/drive/drive_api_service.cc ('k') | chrome/browser/drive/dummy_drive_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698