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

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

Issue 309463002: drive: Change DriveServiceInterface::GetChangeList's callback type to ChangeListCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 // Fetches change list since |start_changestamp|. |callback| will be 192 // Fetches change list since |start_changestamp|. |callback| will be
193 // called upon completion. 193 // called upon completion.
194 // If the list is too long, it may be paged. In such a case, a URL to fetch 194 // If the list is too long, it may be paged. In such a case, a URL to fetch
195 // remaining results will be included in the returned result. See also 195 // remaining results will be included in the returned result. See also
196 // GetRemainingChangeList. 196 // GetRemainingChangeList.
197 // 197 //
198 // |callback| must not be null. 198 // |callback| must not be null.
199 virtual google_apis::CancelCallback GetChangeList( 199 virtual google_apis::CancelCallback GetChangeList(
200 int64 start_changestamp, 200 int64 start_changestamp,
201 const google_apis::GetResourceListCallback& callback) = 0; 201 const google_apis::ChangeListCallback& callback) = 0;
202 202
203 // The result of GetChangeList() and GetAllResourceList() may be paged. 203 // The result of GetChangeList() may be paged.
204 // In such a case, a next link to fetch remaining result is returned. 204 // In such a case, a next link to fetch remaining result is returned.
205 // The page token can be used for this method. |callback| will be called upon 205 // The page token can be used for this method. |callback| will be called upon
206 // completion. 206 // completion.
207 // 207 //
208 // |next_link| must not be empty. |callback| must not be null. 208 // |next_link| must not be empty. |callback| must not be null.
209 virtual google_apis::CancelCallback GetRemainingChangeList( 209 virtual google_apis::CancelCallback GetRemainingChangeList(
210 const GURL& next_link, 210 const GURL& next_link,
211 const google_apis::GetResourceListCallback& callback) = 0; 211 const google_apis::ChangeListCallback& callback) = 0;
212 212
213 // The result of GetResourceListInDirectory(), Search() and SearchByTitle() 213 // The result of GetAllResourceList(), GetResourceListInDirectory(), Search()
214 // may be paged. In such a case, a next link to fetch remaining result is 214 // and SearchByTitle() may be paged. In such a case, a next link to fetch
215 // returned. The page token can be used for this method. |callback| will be 215 // remaining result is returned. The page token can be used for this method.
216 // called upon completion. 216 // |callback| will be called upon completion.
217 // 217 //
218 // |next_link| must not be empty. |callback| must not be null. 218 // |next_link| must not be empty. |callback| must not be null.
219 virtual google_apis::CancelCallback GetRemainingFileList( 219 virtual google_apis::CancelCallback GetRemainingFileList(
220 const GURL& next_link, 220 const GURL& next_link,
221 const google_apis::GetResourceListCallback& callback) = 0; 221 const google_apis::GetResourceListCallback& callback) = 0;
222 222
223 // Fetches single entry metadata from server. The entry's resource id equals 223 // Fetches single entry metadata from server. The entry's resource id equals
224 // |resource_id|. 224 // |resource_id|.
225 // Upon completion, invokes |callback| with results on the calling thread. 225 // Upon completion, invokes |callback| with results on the calling thread.
226 // |callback| must not be null. 226 // |callback| must not be null.
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 virtual google_apis::CancelCallback AddPermission( 420 virtual google_apis::CancelCallback AddPermission(
421 const std::string& resource_id, 421 const std::string& resource_id,
422 const std::string& email, 422 const std::string& email,
423 google_apis::drive::PermissionRole role, 423 google_apis::drive::PermissionRole role,
424 const google_apis::EntryActionCallback& callback) = 0; 424 const google_apis::EntryActionCallback& callback) = 0;
425 }; 425 };
426 426
427 } // namespace drive 427 } // namespace drive
428 428
429 #endif // CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_ 429 #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