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