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_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 "google_apis/drive/auth_service_interface.h" | 10 #include "google_apis/drive/auth_service_interface.h" |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 const google_apis::UploadRangeCallback& callback) = 0; | 343 const google_apis::UploadRangeCallback& callback) = 0; |
344 | 344 |
345 // Authorizes a Drive app with the id |app_id| to open the given file. | 345 // Authorizes a Drive app with the id |app_id| to open the given file. |
346 // Upon completion, invokes |callback| with the link to open the file with | 346 // Upon completion, invokes |callback| with the link to open the file with |
347 // the provided app. |callback| must not be null. | 347 // the provided app. |callback| must not be null. |
348 virtual google_apis::CancelCallback AuthorizeApp( | 348 virtual google_apis::CancelCallback AuthorizeApp( |
349 const std::string& resource_id, | 349 const std::string& resource_id, |
350 const std::string& app_id, | 350 const std::string& app_id, |
351 const google_apis::AuthorizeAppCallback& callback) = 0; | 351 const google_apis::AuthorizeAppCallback& callback) = 0; |
352 | 352 |
| 353 // Uninstalls a Drive app with the id |app_id|. |callback| must not be null. |
| 354 virtual google_apis::CancelCallback UninstallApp( |
| 355 const std::string& app_id, |
| 356 const google_apis::EntryActionCallback& callback) = 0; |
| 357 |
353 // This is introduced as a temporary short term solution of the performance | 358 // This is introduced as a temporary short term solution of the performance |
354 // regression issue on Drive API v2. | 359 // regression issue on Drive API v2. |
355 // | 360 // |
356 // This fetches the resource list in a directory by usinig GData WAPI | 361 // This fetches the resource list in a directory by using GData WAPI |
357 // regardless of base protocol. In other words, even if we enabels Drive API | 362 // regardless of base protocol. In other words, even if we enables Drive API |
358 // v2, this method uses GData WAPI to fetch the resource list. | 363 // v2, this method uses GData WAPI to fetch the resource list. |
359 // | 364 // |
360 // |directory_resource_id| must not be empty. | 365 // |directory_resource_id| must not be empty. |
361 // |callback| must not be null. | 366 // |callback| must not be null. |
362 virtual google_apis::CancelCallback GetResourceListInDirectoryByWapi( | 367 virtual google_apis::CancelCallback GetResourceListInDirectoryByWapi( |
363 const std::string& directory_resource_id, | 368 const std::string& directory_resource_id, |
364 const google_apis::GetResourceListCallback& callback) = 0; | 369 const google_apis::GetResourceListCallback& callback) = 0; |
365 | 370 |
366 // GetResourceListInDirectoryByWapi can be paged. This method fetches the | 371 // GetResourceListInDirectoryByWapi can be paged. This method fetches the |
367 // following pages. | 372 // following pages. |
368 // | 373 // |
369 // |callback| must not be null. | 374 // |callback| must not be null. |
370 virtual google_apis::CancelCallback GetRemainingResourceList( | 375 virtual google_apis::CancelCallback GetRemainingResourceList( |
371 const GURL& next_link, | 376 const GURL& next_link, |
372 const google_apis::GetResourceListCallback& callback) = 0; | 377 const google_apis::GetResourceListCallback& callback) = 0; |
373 }; | 378 }; |
374 | 379 |
375 } // namespace drive | 380 } // namespace drive |
376 | 381 |
377 #endif // CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_ | 382 #endif // CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_ |
OLD | NEW |