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

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: Remove unrelated files from the patch. 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 class ArcNotifierSource : public NotifierSource {
26 public:
27 explicit ArcNotifierSource(message_center::NotifierSettingsObserver* parent);
28 virtual ~ArcNotifierSource();
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 DISALLOW_COPY_AND_ASSIGN(ArcNotifierSource);
40 };
41
42 } // namespace arc
43
44 #endif // CHROME_BROWSER_NOTIFICATIONS_ARC_NOTIFIER_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698