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

Side by Side Diff: ios/public/provider/chrome/browser/signin/fake_chrome_identity_service.h

Issue 2970703002: Change GetAccessToken APIs so that they don't pass const ref to blocks. (Closed)
Patch Set: Created 3 years, 5 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_FAKE_CHROME_IDENTITY_SERVICE_H _ 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_FAKE_CHROME_IDENTITY_SERVICE_H _
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_FAKE_CHROME_IDENTITY_SERVICE_H _ 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_FAKE_CHROME_IDENTITY_SERVICE_H _
7 7
8 #include "ios/public/provider/chrome/browser/signin/chrome_identity_service.h" 8 #include "ios/public/provider/chrome/browser/signin/chrome_identity_service.h"
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 23 matching lines...) Expand all
34 34
35 bool IsValidIdentity(ChromeIdentity* identity) const override; 35 bool IsValidIdentity(ChromeIdentity* identity) const override;
36 ChromeIdentity* GetIdentityWithGaiaID( 36 ChromeIdentity* GetIdentityWithGaiaID(
37 const std::string& gaia_id) const override; 37 const std::string& gaia_id) const override;
38 bool HasIdentities() const override; 38 bool HasIdentities() const override;
39 NSArray* GetAllIdentities() const override; 39 NSArray* GetAllIdentities() const override;
40 NSArray* GetAllIdentitiesSortedForDisplay() const override; 40 NSArray* GetAllIdentitiesSortedForDisplay() const override;
41 void ForgetIdentity(ChromeIdentity* identity, 41 void ForgetIdentity(ChromeIdentity* identity,
42 ForgetIdentityCallback callback) override; 42 ForgetIdentityCallback callback) override;
43 43
44 virtual void GetAccessToken( 44 virtual void GetAccessToken(ChromeIdentity* identity,
45 ChromeIdentity* identity, 45 const std::string& client_id,
46 const std::string& client_id, 46 const std::string& client_secret,
47 const std::string& client_secret, 47 const std::set<std::string>& scopes,
48 const std::set<std::string>& scopes, 48 ios::AccessTokenCallback callback) override;
49 const ios::AccessTokenCallback& callback) override;
50 49
51 virtual void GetAvatarForIdentity(ChromeIdentity* identity, 50 virtual void GetAvatarForIdentity(ChromeIdentity* identity,
52 GetAvatarCallback callback) override; 51 GetAvatarCallback callback) override;
53 52
54 virtual UIImage* GetCachedAvatarForIdentity( 53 virtual UIImage* GetCachedAvatarForIdentity(
55 ChromeIdentity* identity) override; 54 ChromeIdentity* identity) override;
56 55
57 virtual void GetHostedDomainForIdentity( 56 virtual void GetHostedDomainForIdentity(
58 ChromeIdentity* identity, 57 ChromeIdentity* identity,
59 GetHostedDomainCallback callback) override; 58 GetHostedDomainCallback callback) override;
(...skipping 19 matching lines...) Expand all
79 // is unknown. 78 // is unknown.
80 void RemoveIdentity(ChromeIdentity* identity); 79 void RemoveIdentity(ChromeIdentity* identity);
81 80
82 private: 81 private:
83 base::scoped_nsobject<NSMutableArray> identities_; 82 base::scoped_nsobject<NSMutableArray> identities_;
84 }; 83 };
85 84
86 } // namespace ios 85 } // namespace ios
87 86
88 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_FAKE_CHROME_IDENTITY_SERVIC E_H_ 87 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_FAKE_CHROME_IDENTITY_SERVIC E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698