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 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 ~ChromeIdentityServiceObserverBridge() override; | 30 ~ChromeIdentityServiceObserverBridge() override; |
31 | 31 |
32 private: | 32 private: |
33 // ios::ChromeIdentityService::Observer implementation. | 33 // ios::ChromeIdentityService::Observer implementation. |
34 void OnIdentityListChanged() override; | 34 void OnIdentityListChanged() override; |
35 void OnAccessTokenRefreshFailed(ChromeIdentity* identity, | 35 void OnAccessTokenRefreshFailed(ChromeIdentity* identity, |
36 NSDictionary* user_info) override; | 36 NSDictionary* user_info) override; |
37 void OnProfileUpdate(ChromeIdentity* identity) override; | 37 void OnProfileUpdate(ChromeIdentity* identity) override; |
38 void OnChromeIdentityServiceWillBeDestroyed() override; | 38 void OnChromeIdentityServiceWillBeDestroyed() override; |
39 | 39 |
40 id<ChromeIdentityServiceObserver> observer_; // Weak. |observer_| owns this. | 40 __unsafe_unretained id<ChromeIdentityServiceObserver> observer_; // Weak. |
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 |