| Index: chrome/browser/notifications/arc_notifier_source.h
|
| diff --git a/chrome/browser/notifications/arc_notifier_source.h b/chrome/browser/notifications/arc_notifier_source.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..65cc8b48a8b53900363f1af0d7ae2272c6ded197
|
| --- /dev/null
|
| +++ b/chrome/browser/notifications/arc_notifier_source.h
|
| @@ -0,0 +1,45 @@
|
| +// 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_NOTIFIER_SOURCE_H_
|
| +#define CHROME_BROWSER_NOTIFICATIONS_ARC_NOTIFIER_SOURCE_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 ArcNotifierSource : public NotifierSource {
|
| + public:
|
| + explicit ArcNotifierSource(message_center::NotifierSettingsObserver* parent);
|
| + virtual ~ArcNotifierSource();
|
| +
|
| + // 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:
|
| + DISALLOW_COPY_AND_ASSIGN(ArcNotifierSource);
|
| +};
|
| +
|
| +} // namespace arc
|
| +
|
| +#endif // CHROME_BROWSER_NOTIFICATIONS_ARC_NOTIFIER_SOURCE_H_
|
|
|