| Index: chrome/browser/extensions/api/notifications/extension_notification_handler.cc
|
| diff --git a/chrome/browser/extensions/api/notifications/extension_notification_handler.cc b/chrome/browser/extensions/api/notifications/extension_notification_handler.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..84cf00ea30ec12a95f003b0eb61a7fdb35f4bfec
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/api/notifications/extension_notification_handler.cc
|
| @@ -0,0 +1,35 @@
|
| +// Copyright 2017 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.
|
| +
|
| +#include "chrome/browser/extensions/api/notifications/extension_notification_handler.h"
|
| +
|
| +#include "base/logging.h"
|
| +
|
| +ExtensionNotificationHandler::ExtensionNotificationHandler() = default;
|
| +
|
| +ExtensionNotificationHandler::~ExtensionNotificationHandler() = default;
|
| +
|
| +void ExtensionNotificationHandler::OnClose(Profile* profile,
|
| + const std::string& origin,
|
| + const std::string& notification_id,
|
| + bool by_user) {
|
| + // TODO(peter): Call EraseDataForNotificationId from here once this event
|
| + // can be relied upon. (It's only been implemented for native NDSes.)
|
| +}
|
| +
|
| +void ExtensionNotificationHandler::OnClick(
|
| + Profile* profile,
|
| + const std::string& origin,
|
| + const std::string& notification_id,
|
| + int action_index,
|
| + const base::NullableString16& reply) {}
|
| +
|
| +void ExtensionNotificationHandler::OpenSettings(Profile* profile) {
|
| + // Extension notifications don't display a settings button.
|
| + NOTREACHED();
|
| +}
|
| +
|
| +void ExtensionNotificationHandler::RegisterNotification(
|
| + const std::string& notification_id,
|
| + NotificationDelegate* delegate) {}
|
|
|