| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CLOUD_USER_CLOUD_POLICY_MANAGER_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_MANAGER_FACTORY_H_ |
| 6 #define CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_MANAGER_FACTORY_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_MANAGER_FACTORY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 const scoped_refptr<base::SequencedTaskRunner>& background_task_runner, | 100 const scoped_refptr<base::SequencedTaskRunner>& background_task_runner, |
| 101 const scoped_refptr<base::SequencedTaskRunner>& file_task_runner, | 101 const scoped_refptr<base::SequencedTaskRunner>& file_task_runner, |
| 102 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner); | 102 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner); |
| 103 | 103 |
| 104 UserCloudPolicyManager* RegisterManagerForOffTheRecordBrowserContext( | 104 UserCloudPolicyManager* RegisterManagerForOffTheRecordBrowserContext( |
| 105 content::BrowserContext* original_context, | 105 content::BrowserContext* original_context, |
| 106 content::BrowserContext* off_the_record_context); | 106 content::BrowserContext* off_the_record_context); |
| 107 | 107 |
| 108 // BrowserContextKeyedBaseFactory: | 108 // BrowserContextKeyedBaseFactory: |
| 109 virtual void BrowserContextShutdown( | 109 virtual void BrowserContextShutdown( |
| 110 content::BrowserContext* context) OVERRIDE; | 110 content::BrowserContext* context) override; |
| 111 virtual void BrowserContextDestroyed( | 111 virtual void BrowserContextDestroyed( |
| 112 content::BrowserContext* context) OVERRIDE; | 112 content::BrowserContext* context) override; |
| 113 virtual void SetEmptyTestingFactory( | 113 virtual void SetEmptyTestingFactory( |
| 114 content::BrowserContext* context) OVERRIDE; | 114 content::BrowserContext* context) override; |
| 115 virtual bool HasTestingFactory(content::BrowserContext* context) OVERRIDE; | 115 virtual bool HasTestingFactory(content::BrowserContext* context) override; |
| 116 virtual void CreateServiceNow(content::BrowserContext* context) OVERRIDE; | 116 virtual void CreateServiceNow(content::BrowserContext* context) override; |
| 117 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE; | 117 virtual bool ServiceIsCreatedWithBrowserContext() const override; |
| 118 | 118 |
| 119 | 119 |
| 120 typedef std::map<content::BrowserContext*, ManagerWrapper*> ManagerWrapperMap; | 120 typedef std::map<content::BrowserContext*, ManagerWrapper*> ManagerWrapperMap; |
| 121 | 121 |
| 122 ManagerWrapperMap manager_wrappers_; | 122 ManagerWrapperMap manager_wrappers_; |
| 123 TestingFactoryFunction testing_factory_; | 123 TestingFactoryFunction testing_factory_; |
| 124 | 124 |
| 125 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerFactory); | 125 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerFactory); |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 } // namespace policy | 128 } // namespace policy |
| 129 | 129 |
| 130 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_MANAGER_FACTORY_H_ | 130 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_MANAGER_FACTORY_H_ |
| OLD | NEW |