#include "chrome/browser/notifications/notification_platform_bridge_message_center.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "base/no_destructor.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/notifications/notification_display_service_impl.h"
#include "chrome/browser/notifications/notification_ui_manager.h"
#include "chrome/browser/notifications/profile_notification.h"
#include "chrome/common/notifications/notification_operation.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "ui/message_center/public/cpp/notification.h"
namespace {
class PassThroughDelegate : public message_center::NotificationDelegate { … };
}
NotificationPlatformBridgeMessageCenter*
NotificationPlatformBridgeMessageCenter::Get() { … }
NotificationPlatformBridgeMessageCenter::
NotificationPlatformBridgeMessageCenter() = default;
NotificationPlatformBridgeMessageCenter::
~NotificationPlatformBridgeMessageCenter() = default;
void NotificationPlatformBridgeMessageCenter::Display(
NotificationHandler::Type notification_type,
Profile* profile,
const message_center::Notification& notification,
std::unique_ptr<NotificationCommon::Metadata> ) { … }
void NotificationPlatformBridgeMessageCenter::Close(
Profile* profile,
const std::string& notification_id) { … }
void NotificationPlatformBridgeMessageCenter::GetDisplayed(
Profile* profile,
GetDisplayedNotificationsCallback callback) const { … }
void NotificationPlatformBridgeMessageCenter::GetDisplayedForOrigin(
Profile* profile,
const GURL& origin,
GetDisplayedNotificationsCallback callback) const { … }
void NotificationPlatformBridgeMessageCenter::SetReadyCallback(
NotificationBridgeReadyCallback callback) { … }
void NotificationPlatformBridgeMessageCenter::DisplayServiceShutDown(
Profile* profile) { … }