| OLD | NEW |
| (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_ |
| OLD | NEW |