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

Side by Side Diff: chrome/browser/drive/gdata_wapi_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
« no previous file with comments | « chrome/browser/drive/fake_drive_service.cc ('k') | chrome/browser/drive/gdata_wapi_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_GDATA_WAPI_SERVICE_H_ 5 #ifndef CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_
6 #define CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_ 6 #define CHROME_BROWSER_DRIVE_GDATA_WAPI_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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // requests issued through the service if the value is not empty. 51 // requests issued through the service if the value is not empty.
52 GDataWapiService(OAuth2TokenService* oauth2_token_service, 52 GDataWapiService(OAuth2TokenService* oauth2_token_service,
53 net::URLRequestContextGetter* url_request_context_getter, 53 net::URLRequestContextGetter* url_request_context_getter,
54 base::TaskRunner* blocking_task_runner, 54 base::TaskRunner* blocking_task_runner,
55 const GURL& base_url, 55 const GURL& base_url,
56 const GURL& base_download_url, 56 const GURL& base_download_url,
57 const std::string& custom_user_agent); 57 const std::string& custom_user_agent);
58 virtual ~GDataWapiService(); 58 virtual ~GDataWapiService();
59 59
60 // DriveServiceInterface Overrides 60 // DriveServiceInterface Overrides
61 virtual void Initialize() OVERRIDE; 61 virtual void Initialize(const std::string& account_id) OVERRIDE;
62 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; 62 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE;
63 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; 63 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE;
64 virtual bool CanSendRequest() const OVERRIDE; 64 virtual bool CanSendRequest() const OVERRIDE;
65 virtual ResourceIdCanonicalizer GetResourceIdCanonicalizer() const OVERRIDE; 65 virtual ResourceIdCanonicalizer GetResourceIdCanonicalizer() const OVERRIDE;
66 virtual bool HasAccessToken() const OVERRIDE; 66 virtual bool HasAccessToken() const OVERRIDE;
67 virtual void RequestAccessToken( 67 virtual void RequestAccessToken(
68 const google_apis::AuthStatusCallback& callback) OVERRIDE; 68 const google_apis::AuthStatusCallback& callback) OVERRIDE;
69 virtual bool HasRefreshToken() const OVERRIDE; 69 virtual bool HasRefreshToken() const OVERRIDE;
70 virtual void ClearAccessToken() OVERRIDE; 70 virtual void ClearAccessToken() OVERRIDE;
71 virtual void ClearRefreshToken() OVERRIDE; 71 virtual void ClearRefreshToken() OVERRIDE;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // reference, as they may outlive this object. 196 // reference, as they may outlive this object.
197 const google_apis::GDataWapiUrlGenerator url_generator_; 197 const google_apis::GDataWapiUrlGenerator url_generator_;
198 const std::string custom_user_agent_; 198 const std::string custom_user_agent_;
199 199
200 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); 200 DISALLOW_COPY_AND_ASSIGN(GDataWapiService);
201 }; 201 };
202 202
203 } // namespace drive 203 } // namespace drive
204 204
205 #endif // CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_ 205 #endif // CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/drive/fake_drive_service.cc ('k') | chrome/browser/drive/gdata_wapi_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698