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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend_v1/api_util.h

Issue 23382008: Making OAuth2TokenService multi-login aware, updating callers, minor fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing to include the update to ProfileSyncService: r224220 Created 7 years, 3 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
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test_profile_sync_service.cc ('k') | chrome/browser/sync_file_system/drive_backend_v1/api_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698