#include "chrome/browser/push_messaging/push_messaging_refresher.h"
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/not_fatal_until.h"
#include "base/observer_list.h"
#include "base/task/single_thread_task_runner.h"
#include "chrome/browser/push_messaging/push_messaging_app_identifier.h"
#include "chrome/browser/push_messaging/push_messaging_constants.h"
#include "chrome/browser/push_messaging/push_messaging_service_impl.h"
#include "chrome/browser/push_messaging/push_messaging_utils.h"
#include "chrome/common/pref_names.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/push_messaging_service.h"
#include "content/public/common/content_features.h"
#include "third_party/blink/public/mojom/push_messaging/push_messaging_status.mojom.h"
#include "url/gurl.h"
PushMessagingRefresher::PushMessagingRefresher() = default;
PushMessagingRefresher::~PushMessagingRefresher() = default;
size_t PushMessagingRefresher::GetCount() const { … }
void PushMessagingRefresher::Refresh(
PushMessagingAppIdentifier old_app_identifier,
const std::string& new_app_id,
const std::string& sender_id) { … }
void PushMessagingRefresher::OnSubscriptionUpdated(
const std::string& new_app_id) { … }
void PushMessagingRefresher::NotifyOnOldSubscriptionExpired(
const std::string& old_app_id,
const std::string& sender_id) { … }
void PushMessagingRefresher::OnUnsubscribed(const std::string& old_app_id) { … }
void PushMessagingRefresher::GotMessageFrom(const std::string& app_id) { … }
std::optional<PushMessagingAppIdentifier>
PushMessagingRefresher::FindActiveAppIdentifier(const std::string& app_id) { … }
base::WeakPtr<PushMessagingRefresher> PushMessagingRefresher::GetWeakPtr() { … }
void PushMessagingRefresher::AddObserver(Observer* observer) { … }
void PushMessagingRefresher::RemoveObserver(Observer* observer) { … }