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

Unified Diff: chrome/browser/notifications/arc_notifier_source.h

Issue 2064363002: Refactor MessageCenterSettingsController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto associated CL. Created 4 years, 6 months 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/notifications/arc_notifier_source.h
diff --git a/chrome/browser/notifications/arc_notifier_source.h b/chrome/browser/notifications/arc_notifier_source.h
new file mode 100644
index 0000000000000000000000000000000000000000..65cc8b48a8b53900363f1af0d7ae2272c6ded197
--- /dev/null
+++ b/chrome/browser/notifications/arc_notifier_source.h
@@ -0,0 +1,45 @@
+// Copyright 2016 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_NOTIFICATIONS_ARC_NOTIFIER_SOURCE_H_
+#define CHROME_BROWSER_NOTIFICATIONS_ARC_NOTIFIER_SOURCE_H_
+
+#include <memory>
+#include <string>
+#include <vector>
+
+#include "base/macros.h"
+#include "chrome/browser/notifications/notifier_source.h"
+
+namespace content {
+class BrowserContext;
+}
+
+namespace message_center {
+struct Notifier;
+}
+
+namespace arc {
+
+// TODO(hirono): Observe enabled flag change and notify it to message center.
+class ArcNotifierSource : public NotifierSource {
+ public:
+ explicit ArcNotifierSource(message_center::NotifierSettingsObserver* parent);
+ virtual ~ArcNotifierSource();
+
+ // TODO(hirono): Rewrite the function with new API to fetch package list.
+ std::vector<std::unique_ptr<message_center::Notifier>> GetNotifierList(
+ Profile* profile) override;
+ void SetNotifierEnabled(Profile* profile,
+ const message_center::Notifier& notifier,
+ bool enabled) override;
+ message_center::NotifierId::NotifierType GetNotifierType() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ArcNotifierSource);
+};
+
+} // namespace arc
+
+#endif // CHROME_BROWSER_NOTIFICATIONS_ARC_NOTIFIER_SOURCE_H_

Powered by Google App Engine
This is Rietveld 408576698