OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BASE_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_ |
6 #define CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 UserPolicySigninServiceBase( | 65 UserPolicySigninServiceBase( |
66 Profile* profile, | 66 Profile* profile, |
67 PrefService* local_state, | 67 PrefService* local_state, |
68 DeviceManagementService* device_management_service, | 68 DeviceManagementService* device_management_service, |
69 UserCloudPolicyManager* policy_manager, | 69 UserCloudPolicyManager* policy_manager, |
70 SigninManager* signin_manager, | 70 SigninManager* signin_manager, |
71 scoped_refptr<net::URLRequestContextGetter> system_request_context); | 71 scoped_refptr<net::URLRequestContextGetter> system_request_context); |
72 ~UserPolicySigninServiceBase() override; | 72 ~UserPolicySigninServiceBase() override; |
73 | 73 |
74 // Initiates a policy fetch as part of user signin, using a |dm_token| and | 74 // Initiates a policy fetch as part of user signin, using a |dm_token| and |
75 // |client_id| fetched via RegisterForPolicy(). |callback| is invoked | 75 // |client_id| fetched via RegisterForPolicyXXX(). |callback| is invoked |
76 // once the policy fetch is complete, passing true if the policy fetch | 76 // once the policy fetch is complete, passing true if the policy fetch |
77 // succeeded. | 77 // succeeded. |
78 void FetchPolicyForSignedInUser( | 78 void FetchPolicyForSignedInUser( |
79 const std::string& username, | 79 const std::string& username, |
80 const std::string& dm_token, | 80 const std::string& dm_token, |
81 const std::string& client_id, | 81 const std::string& client_id, |
82 scoped_refptr<net::URLRequestContextGetter> profile_request_context, | 82 scoped_refptr<net::URLRequestContextGetter> profile_request_context, |
83 const PolicyFetchCallback& callback); | 83 const PolicyFetchCallback& callback); |
84 | 84 |
85 // SigninManagerBase::Observer implementation: | 85 // SigninManagerBase::Observer implementation: |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 scoped_refptr<net::URLRequestContextGetter> system_request_context_; | 171 scoped_refptr<net::URLRequestContextGetter> system_request_context_; |
172 | 172 |
173 base::WeakPtrFactory<UserPolicySigninServiceBase> weak_factory_; | 173 base::WeakPtrFactory<UserPolicySigninServiceBase> weak_factory_; |
174 | 174 |
175 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninServiceBase); | 175 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninServiceBase); |
176 }; | 176 }; |
177 | 177 |
178 } // namespace policy | 178 } // namespace policy |
179 | 179 |
180 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_ | 180 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_ |
OLD | NEW |