[Eraser strings] Remove unused Supervised User infobar and corresponding strings
[chromium-blink-merge.git] / chrome / browser / policy / cloud / user_cloud_policy_invalidator_factory.h
blob8ae5671469c1a9c072bc86bb5a7496ae4a1c80aa
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_FACTORY_H_
6 #define CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_FACTORY_H_
8 #include "base/memory/singleton.h"
9 #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
11 namespace policy {
13 // Creates an instance of UserCloudPolicyInvalidator for each profile.
14 class UserCloudPolicyInvalidatorFactory
15 : public BrowserContextKeyedServiceFactory {
16 public:
17 static UserCloudPolicyInvalidatorFactory* GetInstance();
19 private:
20 friend struct DefaultSingletonTraits<UserCloudPolicyInvalidatorFactory>;
22 UserCloudPolicyInvalidatorFactory();
23 ~UserCloudPolicyInvalidatorFactory() override;
25 // BrowserContextKeyedServiceFactory:
26 KeyedService* BuildServiceInstanceFor(
27 content::BrowserContext* context) const override;
28 bool ServiceIsCreatedWithBrowserContext() const override;
29 bool ServiceIsNULLWhileTesting() const override;
31 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyInvalidatorFactory);
34 } // namespace policy
36 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_FACTORY_H_