// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_REFRESHER_H_ #define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_REFRESHER_H_ #include <map> #include <optional> #include <vector> #include "base/memory/weak_ptr.h" #include "base/observer_list.h" #include "base/observer_list_types.h" #include "chrome/browser/push_messaging/push_messaging_app_identifier.h" #include "content/public/browser/push_messaging_service.h" #include "third_party/blink/public/mojom/push_messaging/push_messaging.mojom-forward.h" // This class enables push subscription refreshes as defined in the docs: // https://w3c.github.io/push-api/#subscription-refreshes // The idea is to keep the refresh information of both new and old subscription // in memory during the refresh process to be still able to receive messages // through the old subscription after it was replaced by the new subscription. class PushMessagingRefresher { … }; #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_REFRESHER_H_