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