| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 virtual void OnClientError(CloudPolicyClient* client) OVERRIDE; | 99 virtual void OnClientError(CloudPolicyClient* client) OVERRIDE; |
| 100 | 100 |
| 101 // KeyedService implementation: | 101 // KeyedService implementation: |
| 102 virtual void Shutdown() OVERRIDE; | 102 virtual void Shutdown() OVERRIDE; |
| 103 | 103 |
| 104 void SetSystemRequestContext( | 104 void SetSystemRequestContext( |
| 105 scoped_refptr<net::URLRequestContextGetter> request_context); | 105 scoped_refptr<net::URLRequestContextGetter> request_context); |
| 106 | 106 |
| 107 protected: | 107 protected: |
| 108 net::URLRequestContextGetter* system_request_context() { | 108 net::URLRequestContextGetter* system_request_context() { |
| 109 return system_request_context_; | 109 return system_request_context_.get(); |
| 110 } | 110 } |
| 111 | 111 |
| 112 // Returns a CloudPolicyClient to perform a registration with the DM server, | 112 // Returns a CloudPolicyClient to perform a registration with the DM server, |
| 113 // or NULL if |username| shouldn't register for policy management. | 113 // or NULL if |username| shouldn't register for policy management. |
| 114 scoped_ptr<CloudPolicyClient> CreateClientForRegistrationOnly( | 114 scoped_ptr<CloudPolicyClient> CreateClientForRegistrationOnly( |
| 115 const std::string& username); | 115 const std::string& username); |
| 116 | 116 |
| 117 // Returns false if cloud policy is disabled or if the passed |email_address| | 117 // Returns false if cloud policy is disabled or if the passed |email_address| |
| 118 // is definitely not from a hosted domain (according to the blacklist in | 118 // is definitely not from a hosted domain (according to the blacklist in |
| 119 // BrowserPolicyConnector::IsNonEnterpriseUser()). | 119 // BrowserPolicyConnector::IsNonEnterpriseUser()). |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 scoped_refptr<net::URLRequestContextGetter> system_request_context_; | 175 scoped_refptr<net::URLRequestContextGetter> system_request_context_; |
| 176 | 176 |
| 177 base::WeakPtrFactory<UserPolicySigninServiceBase> weak_factory_; | 177 base::WeakPtrFactory<UserPolicySigninServiceBase> weak_factory_; |
| 178 | 178 |
| 179 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninServiceBase); | 179 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninServiceBase); |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 } // namespace policy | 182 } // namespace policy |
| 183 | 183 |
| 184 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_ | 184 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_ |
| OLD | NEW |