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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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: |
86 virtual void GoogleSignedOut(const std::string& username) OVERRIDE; | 86 virtual void GoogleSignedOut(const std::string& account_id, |
| 87 const std::string& username) OVERRIDE; |
87 | 88 |
88 // content::NotificationObserver implementation: | 89 // content::NotificationObserver implementation: |
89 virtual void Observe(int type, | 90 virtual void Observe(int type, |
90 const content::NotificationSource& source, | 91 const content::NotificationSource& source, |
91 const content::NotificationDetails& details) OVERRIDE; | 92 const content::NotificationDetails& details) OVERRIDE; |
92 | 93 |
93 // CloudPolicyService::Observer implementation: | 94 // CloudPolicyService::Observer implementation: |
94 virtual void OnInitializationCompleted(CloudPolicyService* service) OVERRIDE; | 95 virtual void OnInitializationCompleted(CloudPolicyService* service) OVERRIDE; |
95 | 96 |
96 // CloudPolicyClient::Observer implementation: | 97 // CloudPolicyClient::Observer implementation: |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 scoped_refptr<net::URLRequestContextGetter> system_request_context_; | 176 scoped_refptr<net::URLRequestContextGetter> system_request_context_; |
176 | 177 |
177 base::WeakPtrFactory<UserPolicySigninServiceBase> weak_factory_; | 178 base::WeakPtrFactory<UserPolicySigninServiceBase> weak_factory_; |
178 | 179 |
179 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninServiceBase); | 180 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninServiceBase); |
180 }; | 181 }; |
181 | 182 |
182 } // namespace policy | 183 } // namespace policy |
183 | 184 |
184 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_ | 185 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_ |
OLD | NEW |