| Index: chrome/browser/chromeos/policy/consumer_management_notification_factory.h
|
| diff --git a/chrome/browser/chromeos/policy/consumer_management_notification_factory.h b/chrome/browser/chromeos/policy/consumer_management_notification_factory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..617169881511e53b7d33b62c3ff314e5c1dff243
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/policy/consumer_management_notification_factory.h
|
| @@ -0,0 +1,44 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_MANAGEMENT_NOTIFICATION_FACTORY_H_
|
| +#define CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_MANAGEMENT_NOTIFICATION_FACTORY_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "base/memory/singleton.h"
|
| +#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
|
| +
|
| +namespace content {
|
| +class BrowserContext;
|
| +}
|
| +
|
| +namespace policy {
|
| +
|
| +class ConsumerManagementNotification;
|
| +
|
| +class ConsumerManagementNotificationFactory
|
| + : public BrowserContextKeyedServiceFactory {
|
| + public:
|
| + static ConsumerManagementNotification* GetForBrowserContext(
|
| + content::BrowserContext* context);
|
| +
|
| + static ConsumerManagementNotificationFactory* GetInstance();
|
| +
|
| + private:
|
| + friend struct DefaultSingletonTraits<ConsumerManagementNotificationFactory>;
|
| +
|
| + ConsumerManagementNotificationFactory();
|
| + virtual ~ConsumerManagementNotificationFactory();
|
| +
|
| + // BrowserContextKeyedServiceFactory:
|
| + KeyedService* BuildServiceInstanceFor(
|
| + content::BrowserContext* context) const override;
|
| + virtual bool ServiceIsCreatedWithBrowserContext() const override;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ConsumerManagementNotificationFactory);
|
| +};
|
| +
|
| +} // namespace policy
|
| +
|
| +#endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_MANAGEMENT_NOTIFICATION_FACTORY_H_
|
|
|