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_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_FACTORY_H_ |
6 #define CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_FACTORY_H_ | 6 #define CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_FACTORY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
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 "base/memory/singleton.h" | 12 #include "base/memory/singleton.h" |
13 #include "components/browser_context_keyed_service/browser_context_keyed_base_fa ctory.h" | 13 #include "components/browser_context_keyed_service/browser_context_keyed_base_fa ctory.h" |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class SequencedTaskRunner; | 18 class SequencedTaskRunner; |
19 } | 19 } |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 class BrowserContext; | 22 class BrowserContext; |
23 } | 23 } |
24 | 24 |
25 namespace policy { | 25 namespace policy { |
26 | 26 |
27 class CloudPolicyManager; | |
Joao da Silva
2013/10/16 12:44:58
not used
pneubeck (no reviews)
2013/10/22 18:47:41
Done.
| |
27 class ProfilePolicyConnector; | 28 class ProfilePolicyConnector; |
28 | 29 |
29 // Creates ProfilePolicyConnectors for Profiles, which manage the common | 30 // Creates ProfilePolicyConnectors for Profiles, which manage the common |
30 // policy providers and other policy components. | 31 // policy providers and other policy components. |
31 // TODO(joaodasilva): convert this class to a proper PKS once the PrefService, | 32 // TODO(joaodasilva): convert this class to a proper PKS once the PrefService, |
32 // which depends on this class, becomes a PKS too. | 33 // which depends on this class, becomes a PKS too. |
33 class ProfilePolicyConnectorFactory : public BrowserContextKeyedBaseFactory { | 34 class ProfilePolicyConnectorFactory : public BrowserContextKeyedBaseFactory { |
34 public: | 35 public: |
35 // Returns the ProfilePolicyConnectorFactory singleton. | 36 // Returns the ProfilePolicyConnectorFactory singleton. |
36 static ProfilePolicyConnectorFactory* GetInstance(); | 37 static ProfilePolicyConnectorFactory* GetInstance(); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
81 | 82 |
82 typedef std::map<Profile*, ProfilePolicyConnector*> ConnectorMap; | 83 typedef std::map<Profile*, ProfilePolicyConnector*> ConnectorMap; |
83 ConnectorMap connectors_; | 84 ConnectorMap connectors_; |
84 | 85 |
85 DISALLOW_COPY_AND_ASSIGN(ProfilePolicyConnectorFactory); | 86 DISALLOW_COPY_AND_ASSIGN(ProfilePolicyConnectorFactory); |
86 }; | 87 }; |
87 | 88 |
88 } // namespace policy | 89 } // namespace policy |
89 | 90 |
90 #endif // CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_FACTORY_H_ | 91 #endif // CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_FACTORY_H_ |
OLD | NEW |