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

Side by Side Diff: chrome/browser/notifications/system_component_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 (c) 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_SYSTEM_COMPONENT_NOTIFIER_SOURCE_CHROMEOS_H _
6 #define CHROME_BROWSER_NOTIFICATIONS_SYSTEM_COMPONENT_NOTIFIER_SOURCE_CHROMEOS_H _
7
8 #include "chrome/browser/notifications/notifier_source.h"
9
10 class SystemComponentNotifierSourceChromeOS : public NotifierSource {
11 public:
12 explicit SystemComponentNotifierSourceChromeOS(Observer* observer);
13 std::vector<std::unique_ptr<message_center::Notifier>> GetNotifierList(
14 Profile* profile) override;
15 void SetNotifierEnabled(Profile* profile,
16 const message_center::Notifier& notifier,
17 bool enabled) override;
18 message_center::NotifierId::NotifierType GetNotifierType() override;
19
20 private:
21 // Lifetime of parent must be longer than the source.
22 Observer* observer_;
23 };
24
25 #endif // CHROME_BROWSER_NOTIFICATIONS_SYSTEM_COMPONENT_NOTIFIER_SOURCE_CHROMEO S_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698