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

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

Issue 2064363002: Refactor MessageCenterSettingsController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix misspell. 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_application_notifier_source_chromeos.h
diff --git a/chrome/browser/notifications/arc_application_notifier_source_chromeos.h b/chrome/browser/notifications/arc_application_notifier_source_chromeos.h
new file mode 100644
index 0000000000000000000000000000000000000000..35232f64c5de7b9d3cd88a269269020ab8b56c1e
--- /dev/null
+++ b/chrome/browser/notifications/arc_application_notifier_source_chromeos.h
@@ -0,0 +1,44 @@
+// 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_APPLICATION_NOTIFIER_SOURCE_CHROMEOS_H_
+#define CHROME_BROWSER_NOTIFICATIONS_ARC_APPLICATION_NOTIFIER_SOURCE_CHROMEOS_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 ArcApplicationNotifierSourceChromeOS : public NotifierSource {
+ public:
+ explicit ArcApplicationNotifierSourceChromeOS(Observer* observer);
+
+ // 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:
+ Observer* observer_;
+};
+
+} // namespace arc
+
+#endif // CHROME_BROWSER_NOTIFICATIONS_ARC_APPLICATION_NOTIFIER_SOURCE_CHROMEOS_H_

Powered by Google App Engine
This is Rietveld 408576698