OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "ios/public/provider/chrome/browser/signin/chrome_identity_service.h" | 5 #include "ios/public/provider/chrome/browser/signin/chrome_identity_service.h" |
6 | 6 |
7 #include "ios/public/provider/chrome/browser/signin/chrome_identity_interaction_
manager.h" | 7 #include "ios/public/provider/chrome/browser/signin/chrome_identity_interaction_
manager.h" |
8 | 8 |
9 namespace ios { | 9 namespace ios { |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 return nil; | 70 return nil; |
71 } | 71 } |
72 | 72 |
73 NSArray* ChromeIdentityService::GetAllIdentitiesSortedForDisplay() const { | 73 NSArray* ChromeIdentityService::GetAllIdentitiesSortedForDisplay() const { |
74 return nil; | 74 return nil; |
75 } | 75 } |
76 | 76 |
77 void ChromeIdentityService::ForgetIdentity(ChromeIdentity* identity, | 77 void ChromeIdentityService::ForgetIdentity(ChromeIdentity* identity, |
78 ForgetIdentityCallback callback) {} | 78 ForgetIdentityCallback callback) {} |
79 | 79 |
80 void ChromeIdentityService::GetAccessToken( | 80 void ChromeIdentityService::GetAccessToken(ChromeIdentity* identity, |
81 ChromeIdentity* identity, | 81 const std::set<std::string>& scopes, |
82 const std::set<std::string>& scopes, | 82 AccessTokenCallback callback) {} |
83 const AccessTokenCallback& callback) {} | |
84 | 83 |
85 void ChromeIdentityService::GetAccessToken( | 84 void ChromeIdentityService::GetAccessToken(ChromeIdentity* identity, |
86 ChromeIdentity* identity, | 85 const std::string& client_id, |
87 const std::string& client_id, | 86 const std::string& client_secret, |
88 const std::string& client_secret, | 87 const std::set<std::string>& scopes, |
89 const std::set<std::string>& scopes, | 88 AccessTokenCallback callback) {} |
90 const AccessTokenCallback& callback) {} | |
91 | 89 |
92 void ChromeIdentityService::GetAvatarForIdentity(ChromeIdentity* identity, | 90 void ChromeIdentityService::GetAvatarForIdentity(ChromeIdentity* identity, |
93 GetAvatarCallback callback) {} | 91 GetAvatarCallback callback) {} |
94 | 92 |
95 UIImage* ChromeIdentityService::GetCachedAvatarForIdentity( | 93 UIImage* ChromeIdentityService::GetCachedAvatarForIdentity( |
96 ChromeIdentity* identity) { | 94 ChromeIdentity* identity) { |
97 return nil; | 95 return nil; |
98 } | 96 } |
99 | 97 |
100 void ChromeIdentityService::GetHostedDomainForIdentity( | 98 void ChromeIdentityService::GetHostedDomainForIdentity( |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 for (auto& observer : observer_list_) | 138 for (auto& observer : observer_list_) |
141 observer.OnAccessTokenRefreshFailed(identity, user_info); | 139 observer.OnAccessTokenRefreshFailed(identity, user_info); |
142 } | 140 } |
143 | 141 |
144 void ChromeIdentityService::FireProfileDidUpdate(ChromeIdentity* identity) { | 142 void ChromeIdentityService::FireProfileDidUpdate(ChromeIdentity* identity) { |
145 for (auto& observer : observer_list_) | 143 for (auto& observer : observer_list_) |
146 observer.OnProfileUpdate(identity); | 144 observer.OnProfileUpdate(identity); |
147 } | 145 } |
148 | 146 |
149 } // namespace ios | 147 } // namespace ios |
OLD | NEW |