Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / local_discovery / privet_notifications_factory.h
blob6ea7710b03273a6da74751278cc1e478efefd008
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_LOCAL_DISCOVERY_PRIVET_NOTIFICATIONS_FACTORY_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_NOTIFICATIONS_FACTORY_H_
8 #include "base/memory/singleton.h"
9 #include "components/browser_context_keyed_service/browser_context_keyed_service_factory.h"
11 namespace local_discovery {
13 class PrivetNotificationServiceFactory
14 : public BrowserContextKeyedServiceFactory {
15 public:
16 // Returns singleton instance of PrivetNotificationServiceFactory.
17 static PrivetNotificationServiceFactory* GetInstance();
19 private:
20 friend struct DefaultSingletonTraits<PrivetNotificationServiceFactory>;
22 PrivetNotificationServiceFactory();
23 virtual ~PrivetNotificationServiceFactory();
25 // BrowserContextKeyedServiceFactory:
26 virtual BrowserContextKeyedService* BuildServiceInstanceFor(
27 content::BrowserContext* profile) const OVERRIDE;
28 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
29 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
32 } // namespace local_discovery
34 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_NOTIFICATIONS_FACTORY_H_