| 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 "chrome/browser/google_apis/auth_service_interface.h" | 10 #include "chrome/browser/google_apis/auth_service_interface.h" |
| 11 #include "chrome/browser/google_apis/base_requests.h" | 11 #include "chrome/browser/google_apis/base_requests.h" |
| 12 #include "chrome/browser/google_apis/drive_common_callbacks.h" | 12 #include "chrome/browser/google_apis/drive_common_callbacks.h" |
| 13 | 13 |
| 14 namespace base { |
| 15 class Time; |
| 16 } |
| 17 |
| 14 namespace drive { | 18 namespace drive { |
| 15 | 19 |
| 16 // Function which converts the given resource ID into the desired format. | 20 // Function which converts the given resource ID into the desired format. |
| 17 typedef base::Callback<std::string( | 21 typedef base::Callback<std::string( |
| 18 const std::string& resource_id)> ResourceIdCanonicalizer; | 22 const std::string& resource_id)> ResourceIdCanonicalizer; |
| 19 | 23 |
| 20 // Observer interface for DriveServiceInterface. | 24 // Observer interface for DriveServiceInterface. |
| 21 class DriveServiceObserver { | 25 class DriveServiceObserver { |
| 22 public: | 26 public: |
| 23 // Triggered when the service gets ready to send requests. | 27 // Triggered when the service gets ready to send requests. |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 // | 384 // |
| 381 // |callback| must not be null. | 385 // |callback| must not be null. |
| 382 virtual google_apis::CancelCallback GetRemainingResourceList( | 386 virtual google_apis::CancelCallback GetRemainingResourceList( |
| 383 const GURL& next_link, | 387 const GURL& next_link, |
| 384 const google_apis::GetResourceListCallback& callback) = 0; | 388 const google_apis::GetResourceListCallback& callback) = 0; |
| 385 }; | 389 }; |
| 386 | 390 |
| 387 } // namespace drive | 391 } // namespace drive |
| 388 | 392 |
| 389 #endif // CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_ | 393 #endif // CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_ |
| OLD | NEW |