Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / extensions / install_tracker_factory.h
blob214bc9572731ffa62ca89e311eaa633ff77d2ea3
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_EXTENSIONS_INSTALL_TRACKER_FACTORY_H_
6 #define CHROME_BROWSER_EXTENSIONS_INSTALL_TRACKER_FACTORY_H_
8 #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
10 template <typename T> struct DefaultSingletonTraits;
12 namespace extensions {
14 class InstallTracker;
16 class InstallTrackerFactory : public BrowserContextKeyedServiceFactory {
17 public:
18 static InstallTracker* GetForBrowserContext(content::BrowserContext* context);
19 static InstallTrackerFactory* GetInstance();
21 private:
22 friend struct DefaultSingletonTraits<InstallTrackerFactory>;
24 InstallTrackerFactory();
25 ~InstallTrackerFactory() override;
27 // BrowserContextKeyedServiceFactory overrides:
28 KeyedService* BuildServiceInstanceFor(
29 content::BrowserContext* context) const override;
30 content::BrowserContext* GetBrowserContextToUse(
31 content::BrowserContext* context) const override;
33 DISALLOW_COPY_AND_ASSIGN(InstallTrackerFactory);
36 } // namespace extensions
38 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_TRACKER_FACTORY_H_