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" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "components/keyed_service/core/keyed_service.h" | 12 #include "components/keyed_service/core/keyed_service.h" |
13 | 13 |
14 namespace chromeos { | 14 namespace user_manager { |
15 class User; | 15 class User; |
16 } | 16 } |
17 | 17 |
18 namespace policy { | 18 namespace policy { |
19 | 19 |
20 class CloudPolicyManager; | 20 class CloudPolicyManager; |
21 class ConfigurationPolicyProvider; | 21 class ConfigurationPolicyProvider; |
22 class PolicyService; | 22 class PolicyService; |
23 class SchemaRegistry; | 23 class SchemaRegistry; |
24 | 24 |
25 // A KeyedService that creates and manages the per-Profile policy | 25 // A KeyedService that creates and manages the per-Profile policy |
26 // components. | 26 // components. |
27 class ProfilePolicyConnector : public KeyedService { | 27 class ProfilePolicyConnector : public KeyedService { |
28 public: | 28 public: |
29 ProfilePolicyConnector(); | 29 ProfilePolicyConnector(); |
30 virtual ~ProfilePolicyConnector(); | 30 virtual ~ProfilePolicyConnector(); |
31 | 31 |
32 // If |force_immediate_load| then disk caches will be loaded synchronously. | 32 // If |force_immediate_load| then disk caches will be loaded synchronously. |
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 chromeos::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. |
(...skipping 28 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 |