| 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 #ifndef IOS_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_SERVICE_OBSERVER_BRIDGE_H_ | 5 #ifndef IOS_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_SERVICE_OBSERVER_BRIDGE_H_ |
| 6 #define IOS_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_SERVICE_OBSERVER_BRIDGE_H_ | 6 #define IOS_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_SERVICE_OBSERVER_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/scoped_observer.h" | 11 #include "base/scoped_observer.h" |
| 12 #include "ios/public/provider/chrome/browser/signin/chrome_identity_service.h" | 12 #include "ios/public/provider/chrome/browser/signin/chrome_identity_service.h" |
| 13 | 13 |
| 14 // Objective-C protocol mirroring ChromeIdentityService::Observer. | 14 // Objective-C protocol mirroring ChromeIdentityService::Observer. |
| 15 @protocol ChromeIdentityServiceObserver<NSObject> | 15 @protocol ChromeIdentityServiceObserver<NSObject> |
| 16 @optional | 16 @optional |
| 17 - (void)onIdentityListChanged; | 17 - (void)onIdentityListChanged; |
| 18 - (void)onAccessTokenRefreshFailed:(ChromeIdentity*)identity | 18 - (void)onAccessTokenRefreshFailed:(ChromeIdentity*)identity |
| (...skipping 19 matching lines...) Expand all Loading... |
| 38 void OnChromeIdentityServiceWillBeDestroyed() override; | 38 void OnChromeIdentityServiceWillBeDestroyed() override; |
| 39 | 39 |
| 40 id<ChromeIdentityServiceObserver> observer_; // Weak. |observer_| owns this. | 40 id<ChromeIdentityServiceObserver> observer_; // Weak. |observer_| owns this. |
| 41 ScopedObserver<ios::ChromeIdentityService, | 41 ScopedObserver<ios::ChromeIdentityService, |
| 42 ChromeIdentityServiceObserverBridge> scoped_observer_; | 42 ChromeIdentityServiceObserverBridge> scoped_observer_; |
| 43 | 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(ChromeIdentityServiceObserverBridge); | 44 DISALLOW_COPY_AND_ASSIGN(ChromeIdentityServiceObserverBridge); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 #endif // IOS_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_SERVICE_OBSERVER_BRIDGE_H_ | 47 #endif // IOS_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_SERVICE_OBSERVER_BRIDGE_H_ |
| OLD | NEW |