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

Side by Side Diff: chrome/browser/drive/drive_api_service.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 (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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 OAuth2TokenService* oauth2_token_service, 55 OAuth2TokenService* oauth2_token_service,
56 net::URLRequestContextGetter* url_request_context_getter, 56 net::URLRequestContextGetter* url_request_context_getter,
57 base::TaskRunner* blocking_task_runner, 57 base::TaskRunner* blocking_task_runner,
58 const GURL& base_url, 58 const GURL& base_url,
59 const GURL& base_download_url, 59 const GURL& base_download_url,
60 const GURL& wapi_base_url, 60 const GURL& wapi_base_url,
61 const std::string& custom_user_agent); 61 const std::string& custom_user_agent);
62 virtual ~DriveAPIService(); 62 virtual ~DriveAPIService();
63 63
64 // DriveServiceInterface Overrides 64 // DriveServiceInterface Overrides
65 virtual void Initialize() OVERRIDE; 65 virtual void Initialize(const std::string& account_id) OVERRIDE;
66 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; 66 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE;
67 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; 67 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE;
68 virtual bool CanSendRequest() const OVERRIDE; 68 virtual bool CanSendRequest() const OVERRIDE;
69 virtual ResourceIdCanonicalizer GetResourceIdCanonicalizer() const OVERRIDE; 69 virtual ResourceIdCanonicalizer GetResourceIdCanonicalizer() const OVERRIDE;
70 virtual bool HasAccessToken() const OVERRIDE; 70 virtual bool HasAccessToken() const OVERRIDE;
71 virtual void RequestAccessToken( 71 virtual void RequestAccessToken(
72 const google_apis::AuthStatusCallback& callback) OVERRIDE; 72 const google_apis::AuthStatusCallback& callback) OVERRIDE;
73 virtual bool HasRefreshToken() const OVERRIDE; 73 virtual bool HasRefreshToken() const OVERRIDE;
74 virtual void ClearAccessToken() OVERRIDE; 74 virtual void ClearAccessToken() OVERRIDE;
75 virtual void ClearRefreshToken() OVERRIDE; 75 virtual void ClearRefreshToken() OVERRIDE;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 google_apis::DriveApiUrlGenerator url_generator_; 199 google_apis::DriveApiUrlGenerator url_generator_;
200 google_apis::GDataWapiUrlGenerator wapi_url_generator_; 200 google_apis::GDataWapiUrlGenerator wapi_url_generator_;
201 const std::string custom_user_agent_; 201 const std::string custom_user_agent_;
202 202
203 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); 203 DISALLOW_COPY_AND_ASSIGN(DriveAPIService);
204 }; 204 };
205 205
206 } // namespace drive 206 } // namespace drive
207 207
208 #endif // CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_ 208 #endif // CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings/device_oauth2_token_service_unittest.cc ('k') | chrome/browser/drive/drive_api_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698