OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_MOBILE_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_MOBILE_H_ |
6 #define CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_MOBILE_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_MOBILE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 // Registers for cloud policy for an already signed-in user. | 86 // Registers for cloud policy for an already signed-in user. |
87 void RegisterCloudPolicyService(); | 87 void RegisterCloudPolicyService(); |
88 | 88 |
89 // Cancels a pending cloud policy registration attempt. | 89 // Cancels a pending cloud policy registration attempt. |
90 void CancelPendingRegistration(); | 90 void CancelPendingRegistration(); |
91 | 91 |
92 void OnRegistrationDone(); | 92 void OnRegistrationDone(); |
93 | 93 |
94 scoped_ptr<CloudPolicyClientRegistrationHelper> registration_helper_; | 94 scoped_ptr<CloudPolicyClientRegistrationHelper> registration_helper_; |
95 base::WeakPtrFactory<UserPolicySigninService> weak_factory_; | |
96 | 95 |
97 // Weak pointer to the token service used to authenticate the | 96 // Weak pointer to the token service used to authenticate the |
98 // CloudPolicyClient during registration. | 97 // CloudPolicyClient during registration. |
99 ProfileOAuth2TokenService* oauth2_token_service_; | 98 ProfileOAuth2TokenService* oauth2_token_service_; |
100 | 99 |
101 // The PrefService associated with the profile. | 100 // The PrefService associated with the profile. |
102 PrefService* profile_prefs_; | 101 PrefService* profile_prefs_; |
103 | 102 |
| 103 base::WeakPtrFactory<UserPolicySigninService> weak_factory_; |
| 104 |
104 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninService); | 105 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninService); |
105 }; | 106 }; |
106 | 107 |
107 } // namespace policy | 108 } // namespace policy |
108 | 109 |
109 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_MOBILE_H_ | 110 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_MOBILE_H_ |
OLD | NEW |