Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / drive / drive_notification_manager_factory.h
bloba0f1ffbe68342085069e6b378509c64cc400cc74
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_DRIVE_DRIVE_NOTIFICATION_MANAGER_FACTORY_H_
6 #define CHROME_BROWSER_DRIVE_DRIVE_NOTIFICATION_MANAGER_FACTORY_H_
8 #include "base/memory/singleton.h"
9 #include "components/browser_context_keyed_service/browser_context_keyed_service_factory.h"
11 namespace content {
12 class BrowserContext;
15 namespace drive {
17 class DriveNotificationManager;
19 // Singleton that owns all DriveNotificationManager and associates them with
20 // browser contexts.
21 class DriveNotificationManagerFactory
22 : public BrowserContextKeyedServiceFactory {
23 public:
24 static DriveNotificationManager* GetForBrowserContext(
25 content::BrowserContext* context);
27 static DriveNotificationManagerFactory* GetInstance();
29 private:
30 friend struct DefaultSingletonTraits<DriveNotificationManagerFactory>;
32 DriveNotificationManagerFactory();
33 virtual ~DriveNotificationManagerFactory();
35 // BrowserContextKeyedServiceFactory implementation.
36 virtual BrowserContextKeyedService* BuildServiceInstanceFor(
37 content::BrowserContext* context) const OVERRIDE;
40 } // namespace drive
42 #endif // CHROME_BROWSER_DRIVE_DRIVE_NOTIFICATION_MANAGER_FACTORY_H_