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" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 ProfilePolicyConnector* GetForProfileInternal(Profile* profile); | 64 ProfilePolicyConnector* GetForProfileInternal(Profile* profile); |
65 | 65 |
66 scoped_ptr<ProfilePolicyConnector> CreateForProfileInternal( | 66 scoped_ptr<ProfilePolicyConnector> CreateForProfileInternal( |
67 Profile* profile, | 67 Profile* profile, |
68 bool force_immediate_load, | 68 bool force_immediate_load, |
69 base::SequencedTaskRunner* sequenced_task_runner); | 69 base::SequencedTaskRunner* sequenced_task_runner); |
70 | 70 |
71 // ProfileKeyedBaseFactory: | 71 // ProfileKeyedBaseFactory: |
72 virtual void ProfileShutdown(content::BrowserContext* context) OVERRIDE; | 72 virtual void ProfileShutdown(content::BrowserContext* context) OVERRIDE; |
73 virtual void ProfileDestroyed(content::BrowserContext* context) OVERRIDE; | 73 virtual void ProfileDestroyed(content::BrowserContext* context) OVERRIDE; |
74 virtual void RegisterUserPrefs(PrefRegistrySyncable* registry) OVERRIDE; | 74 virtual void RegisterUserPrefs( |
| 75 user_prefs::PrefRegistrySyncable* registry) OVERRIDE; |
75 virtual void SetEmptyTestingFactory( | 76 virtual void SetEmptyTestingFactory( |
76 content::BrowserContext* context) OVERRIDE; | 77 content::BrowserContext* context) OVERRIDE; |
77 virtual void CreateServiceNow(content::BrowserContext* context) OVERRIDE; | 78 virtual void CreateServiceNow(content::BrowserContext* context) OVERRIDE; |
78 | 79 |
79 typedef std::map<Profile*, ProfilePolicyConnector*> ConnectorMap; | 80 typedef std::map<Profile*, ProfilePolicyConnector*> ConnectorMap; |
80 ConnectorMap connectors_; | 81 ConnectorMap connectors_; |
81 | 82 |
82 DISALLOW_COPY_AND_ASSIGN(ProfilePolicyConnectorFactory); | 83 DISALLOW_COPY_AND_ASSIGN(ProfilePolicyConnectorFactory); |
83 }; | 84 }; |
84 | 85 |
85 } // namespace policy | 86 } // namespace policy |
86 | 87 |
87 #endif // CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_FACTORY_H_ | 88 #endif // CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_FACTORY_H_ |
OLD | NEW |