| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SYNC_FILE_SYSTEM_DRIVE_BACKEND_V1_API_UTIL_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_V1_API_UTIL_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_V1_API_UTIL_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_V1_API_UTIL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 typedef int64 UploadKey; | 111 typedef int64 UploadKey; |
| 112 typedef std::map<UploadKey, UploadFileCallback> UploadCallbackMap; | 112 typedef std::map<UploadKey, UploadFileCallback> UploadCallbackMap; |
| 113 | 113 |
| 114 friend class APIUtilTest; | 114 friend class APIUtilTest; |
| 115 | 115 |
| 116 // Constructor for test use. | 116 // Constructor for test use. |
| 117 APIUtil(const base::FilePath& temp_dir_path, | 117 APIUtil(const base::FilePath& temp_dir_path, |
| 118 const GURL& base_url, | 118 const GURL& base_url, |
| 119 const GURL& base_download_url, | 119 const GURL& base_download_url, |
| 120 scoped_ptr<drive::DriveServiceInterface> drive_service, | 120 scoped_ptr<drive::DriveServiceInterface> drive_service, |
| 121 scoped_ptr<drive::DriveUploaderInterface> drive_uploader); | 121 scoped_ptr<drive::DriveUploaderInterface> drive_uploader, |
| 122 const std::string& account_id); |
| 122 | 123 |
| 123 void GetDriveRootResourceId(const GDataErrorCallback& callback); | 124 void GetDriveRootResourceId(const GDataErrorCallback& callback); |
| 124 void DidGetDriveRootResourceId( | 125 void DidGetDriveRootResourceId( |
| 125 const GDataErrorCallback& callback, | 126 const GDataErrorCallback& callback, |
| 126 google_apis::GDataErrorCode error, | 127 google_apis::GDataErrorCode error, |
| 127 scoped_ptr<google_apis::AboutResource> about_resource); | 128 scoped_ptr<google_apis::AboutResource> about_resource); |
| 128 | 129 |
| 129 void DidGetDriveRootResourceIdForGetSyncRoot( | 130 void DidGetDriveRootResourceIdForGetSyncRoot( |
| 130 const ResourceIdCallback& callback, | 131 const ResourceIdCallback& callback, |
| 131 google_apis::GDataErrorCode error); | 132 google_apis::GDataErrorCode error); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 258 |
| 258 ObserverList<APIUtilObserver> observers_; | 259 ObserverList<APIUtilObserver> observers_; |
| 259 | 260 |
| 260 DISALLOW_COPY_AND_ASSIGN(APIUtil); | 261 DISALLOW_COPY_AND_ASSIGN(APIUtil); |
| 261 }; | 262 }; |
| 262 | 263 |
| 263 } // namespace drive_backend | 264 } // namespace drive_backend |
| 264 } // namespace sync_file_system | 265 } // namespace sync_file_system |
| 265 | 266 |
| 266 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_V1_API_UTIL_H_ | 267 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_V1_API_UTIL_H_ |
| OLD | NEW |