OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_PROFILE_POLICY_CONNECTOR_H_ | 5 #ifndef CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ |
6 #define CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ | 6 #define CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 void Init(bool force_immediate_load, | 33 void Init(bool force_immediate_load, |
34 #if defined(OS_CHROMEOS) | 34 #if defined(OS_CHROMEOS) |
35 const user_manager::User* user, | 35 const user_manager::User* user, |
36 #endif | 36 #endif |
37 SchemaRegistry* schema_registry, | 37 SchemaRegistry* schema_registry, |
38 CloudPolicyManager* user_cloud_policy_manager); | 38 CloudPolicyManager* user_cloud_policy_manager); |
39 | 39 |
40 void InitForTesting(scoped_ptr<PolicyService> service); | 40 void InitForTesting(scoped_ptr<PolicyService> service); |
41 | 41 |
42 // KeyedService: | 42 // KeyedService: |
43 virtual void Shutdown() OVERRIDE; | 43 virtual void Shutdown() override; |
44 | 44 |
45 // This is never NULL. | 45 // This is never NULL. |
46 PolicyService* policy_service() const { return policy_service_.get(); } | 46 PolicyService* policy_service() const { return policy_service_.get(); } |
47 | 47 |
48 // Returns true if this Profile is under cloud policy management. | 48 // Returns true if this Profile is under cloud policy management. |
49 bool IsManaged() const; | 49 bool IsManaged() const; |
50 | 50 |
51 // Returns the cloud policy management domain, if this Profile is under | 51 // Returns the cloud policy management domain, if this Profile is under |
52 // cloud policy management. Otherwise returns an empty string. | 52 // cloud policy management. Otherwise returns an empty string. |
53 std::string GetManagementDomain() const; | 53 std::string GetManagementDomain() const; |
(...skipping 20 matching lines...) Expand all Loading... |
74 #endif // defined(ENABLE_CONFIGURATION_POLICY) | 74 #endif // defined(ENABLE_CONFIGURATION_POLICY) |
75 | 75 |
76 scoped_ptr<PolicyService> policy_service_; | 76 scoped_ptr<PolicyService> policy_service_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(ProfilePolicyConnector); | 78 DISALLOW_COPY_AND_ASSIGN(ProfilePolicyConnector); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace policy | 81 } // namespace policy |
82 | 82 |
83 #endif // CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ | 83 #endif // CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ |
OLD | NEW |