| Index: chrome/browser/notifications/arc_application_notifier_source_chromeos.h
|
| diff --git a/chrome/browser/notifications/arc_application_notifier_source_chromeos.h b/chrome/browser/notifications/arc_application_notifier_source_chromeos.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..35232f64c5de7b9d3cd88a269269020ab8b56c1e
|
| --- /dev/null
|
| +++ b/chrome/browser/notifications/arc_application_notifier_source_chromeos.h
|
| @@ -0,0 +1,44 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_NOTIFICATIONS_ARC_APPLICATION_NOTIFIER_SOURCE_CHROMEOS_H_
|
| +#define CHROME_BROWSER_NOTIFICATIONS_ARC_APPLICATION_NOTIFIER_SOURCE_CHROMEOS_H_
|
| +
|
| +#include <memory>
|
| +#include <string>
|
| +#include <vector>
|
| +
|
| +#include "base/macros.h"
|
| +#include "chrome/browser/notifications/notifier_source.h"
|
| +
|
| +namespace content {
|
| +class BrowserContext;
|
| +}
|
| +
|
| +namespace message_center {
|
| +struct Notifier;
|
| +}
|
| +
|
| +namespace arc {
|
| +
|
| +// TODO(hirono): Observe enabled flag change and notify it to message center.
|
| +class ArcApplicationNotifierSourceChromeOS : public NotifierSource {
|
| + public:
|
| + explicit ArcApplicationNotifierSourceChromeOS(Observer* observer);
|
| +
|
| + // TODO(hirono): Rewrite the function with new API to fetch package list.
|
| + std::vector<std::unique_ptr<message_center::Notifier>> GetNotifierList(
|
| + Profile* profile) override;
|
| + void SetNotifierEnabled(Profile* profile,
|
| + const message_center::Notifier& notifier,
|
| + bool enabled) override;
|
| + message_center::NotifierId::NotifierType GetNotifierType() override;
|
| +
|
| + private:
|
| + Observer* observer_;
|
| +};
|
| +
|
| +} // namespace arc
|
| +
|
| +#endif // CHROME_BROWSER_NOTIFICATIONS_ARC_APPLICATION_NOTIFIER_SOURCE_CHROMEOS_H_
|
|
|