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

Side by Side 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 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_NOTIFIER_SOURCE_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_ARC_NOTIFIER_SOURCE_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 ArcNotifierSource : public NotifierSource {
27 public:
28 explicit ArcNotifierSource(message_center::NotifierSettingsObserver* parent);
29 virtual ~ArcNotifierSource();
30
31 // TODO(hirono): Rewrite the function with new API to fetch package list.
32 std::vector<std::unique_ptr<message_center::Notifier>> GetNotifierList(
33 Profile* profile) override;
34 void SetNotifierEnabled(Profile* profile,
35 const message_center::Notifier& notifier,
36 bool enabled) override;
37 message_center::NotifierId::NotifierType GetNotifierType() override;
38
39 private:
40 DISALLOW_COPY_AND_ASSIGN(ArcNotifierSource);
41 };
42
43 } // namespace arc
44
45 #endif // CHROME_BROWSER_NOTIFICATIONS_ARC_NOTIFIER_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698