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

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

Issue 1165323004: We should use UserID object to identify users instead of username. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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_API_SERVICE_H_ 5 #ifndef CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_
6 #define CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_ 6 #define CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 const google_apis::ProgressCallback& progress_callback) override; 228 const google_apis::ProgressCallback& progress_callback) override;
229 google_apis::CancelCallback AuthorizeApp( 229 google_apis::CancelCallback AuthorizeApp(
230 const std::string& resource_id, 230 const std::string& resource_id,
231 const std::string& app_id, 231 const std::string& app_id,
232 const google_apis::AuthorizeAppCallback& callback) override; 232 const google_apis::AuthorizeAppCallback& callback) override;
233 google_apis::CancelCallback UninstallApp( 233 google_apis::CancelCallback UninstallApp(
234 const std::string& app_id, 234 const std::string& app_id,
235 const google_apis::EntryActionCallback& callback) override; 235 const google_apis::EntryActionCallback& callback) override;
236 google_apis::CancelCallback AddPermission( 236 google_apis::CancelCallback AddPermission(
237 const std::string& resource_id, 237 const std::string& resource_id,
238 const std::string& email, 238 const user_manager::UserID& user_id,
239 google_apis::drive::PermissionRole role, 239 google_apis::drive::PermissionRole role,
240 const google_apis::EntryActionCallback& callback) override; 240 const google_apis::EntryActionCallback& callback) override;
241 scoped_ptr<BatchRequestConfiguratorInterface> StartBatchRequest() override; 241 scoped_ptr<BatchRequestConfiguratorInterface> StartBatchRequest() override;
242 242
243 private: 243 private:
244 // AuthServiceObserver override. 244 // AuthServiceObserver override.
245 void OnOAuth2RefreshTokenChanged() override; 245 void OnOAuth2RefreshTokenChanged() override;
246 246
247 // The class is expected to run on UI thread. 247 // The class is expected to run on UI thread.
248 base::ThreadChecker thread_checker_; 248 base::ThreadChecker thread_checker_;
249 249
250 OAuth2TokenService* oauth2_token_service_; 250 OAuth2TokenService* oauth2_token_service_;
251 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; 251 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
252 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 252 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
253 scoped_ptr<google_apis::RequestSender> sender_; 253 scoped_ptr<google_apis::RequestSender> sender_;
254 ObserverList<DriveServiceObserver> observers_; 254 ObserverList<DriveServiceObserver> observers_;
255 google_apis::DriveApiUrlGenerator url_generator_; 255 google_apis::DriveApiUrlGenerator url_generator_;
256 const std::string custom_user_agent_; 256 const std::string custom_user_agent_;
257 257
258 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); 258 DISALLOW_COPY_AND_ASSIGN(DriveAPIService);
259 }; 259 };
260 260
261 } // namespace drive 261 } // namespace drive
262 262
263 #endif // CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_ 263 #endif // CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698