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_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_FACTORY_CHROMEO
S_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_FACTORY_CHROMEO
S_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_FACTORY_CHROMEO
S_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_FACTORY_CHROMEO
S_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 // See comments for the static versions above. | 70 // See comments for the static versions above. |
71 UserCloudPolicyManagerChromeOS* GetManagerForProfile(Profile* profile); | 71 UserCloudPolicyManagerChromeOS* GetManagerForProfile(Profile* profile); |
72 scoped_ptr<UserCloudPolicyManagerChromeOS> CreateManagerForProfile( | 72 scoped_ptr<UserCloudPolicyManagerChromeOS> CreateManagerForProfile( |
73 Profile* profile, | 73 Profile* profile, |
74 bool force_immediate_load, | 74 bool force_immediate_load, |
75 scoped_refptr<base::SequencedTaskRunner> background_task_runner); | 75 scoped_refptr<base::SequencedTaskRunner> background_task_runner); |
76 | 76 |
77 // BrowserContextKeyedBaseFactory: | 77 // BrowserContextKeyedBaseFactory: |
78 virtual void BrowserContextShutdown( | 78 virtual void BrowserContextShutdown( |
79 content::BrowserContext* context) OVERRIDE; | 79 content::BrowserContext* context) override; |
80 virtual void BrowserContextDestroyed( | 80 virtual void BrowserContextDestroyed( |
81 content::BrowserContext* context) OVERRIDE; | 81 content::BrowserContext* context) override; |
82 virtual void SetEmptyTestingFactory( | 82 virtual void SetEmptyTestingFactory( |
83 content::BrowserContext* context) OVERRIDE; | 83 content::BrowserContext* context) override; |
84 virtual bool HasTestingFactory(content::BrowserContext* context) OVERRIDE; | 84 virtual bool HasTestingFactory(content::BrowserContext* context) override; |
85 virtual void CreateServiceNow(content::BrowserContext* context) OVERRIDE; | 85 virtual void CreateServiceNow(content::BrowserContext* context) override; |
86 | 86 |
87 typedef std::map<Profile*, UserCloudPolicyManagerChromeOS*> ManagerMap; | 87 typedef std::map<Profile*, UserCloudPolicyManagerChromeOS*> ManagerMap; |
88 ManagerMap managers_; | 88 ManagerMap managers_; |
89 | 89 |
90 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerFactoryChromeOS); | 90 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerFactoryChromeOS); |
91 }; | 91 }; |
92 | 92 |
93 } // namespace policy | 93 } // namespace policy |
94 | 94 |
95 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_FACTORY_CHRO
MEOS_H_ | 95 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_FACTORY_CHRO
MEOS_H_ |
OLD | NEW |