Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1045)

Unified Diff: chrome/browser/chromeos/policy/consumer_management_notification_factory.h

Issue 733613005: Move the notification part out of ConsumerEnrollmentHandler so that it can be reused for unenrollme… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@enroll
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698