Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / chrome / browser / extensions / install_verifier_factory.h
blob09be4200fc7399521ab755630eeb4bb2413bdb9d
1 // Copyright 2015 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_EXTENSIONS_INSTALL_VERIFIER_FACTORY_H_
6 #define CHROME_BROWSER_EXTENSIONS_INSTALL_VERIFIER_FACTORY_H_
8 #include "base/memory/singleton.h"
9 #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
11 namespace extensions {
13 class InstallVerifier;
15 class InstallVerifierFactory : public BrowserContextKeyedServiceFactory {
16 public:
17 static InstallVerifier* GetForBrowserContext(
18 content::BrowserContext* context);
19 static InstallVerifierFactory* GetInstance();
21 private:
22 friend struct DefaultSingletonTraits<InstallVerifierFactory>;
24 InstallVerifierFactory();
25 ~InstallVerifierFactory() override;
27 // BrowserContextKeyedServiceFactory implementation
28 KeyedService* BuildServiceInstanceFor(
29 content::BrowserContext* context) const override;
30 content::BrowserContext* GetBrowserContextToUse(
31 content::BrowserContext* context) const override;
33 DISALLOW_COPY_AND_ASSIGN(InstallVerifierFactory);
36 } // namespace extensions
38 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_VERIFIER_FACTORY_H_