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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_ARC_APPLICATION_NOTIFIER_SOURCE_CHROMEOS_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_ARC_APPLICATION_NOTIFIER_SOURCE_CHROMEOS_H_
7
8 #include <memory>
9 #include <string>
10 #include <vector>
11
12 #include "base/macros.h"
13 #include "chrome/browser/notifications/notifier_source.h"
14
15 namespace content {
16 class BrowserContext;
17 }
18
19 namespace message_center {
20 struct Notifier;
21 }
22
23 namespace arc {
24
25 // TODO(hirono): Observe enabled flag change and notify it to message center.
26 class ArcApplicationNotifierSourceChromeOS : public NotifierSource {
27 public:
28 explicit ArcApplicationNotifierSourceChromeOS(Observer* observer);
29
30 // TODO(hirono): Rewrite the function with new API to fetch package list.
31 std::vector<std::unique_ptr<message_center::Notifier>> GetNotifierList(
32 Profile* profile) override;
33 void SetNotifierEnabled(Profile* profile,
34 const message_center::Notifier& notifier,
35 bool enabled) override;
36 message_center::NotifierId::NotifierType GetNotifierType() override;
37
38 private:
39 Observer* observer_;
40 };
41
42 } // namespace arc
43
44 #endif // CHROME_BROWSER_NOTIFICATIONS_ARC_APPLICATION_NOTIFIER_SOURCE_CHROMEOS _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698