OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |