#include "content/browser/background_fetch/background_fetch_registration_notifier.h"
#include <map>
#include "base/command_line.h"
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "content/common/background_fetch/background_fetch_types.h"
#include "content/public/common/content_switches.h"
namespace content {
BackgroundFetchRegistrationNotifier::BackgroundFetchRegistrationNotifier() { … }
BackgroundFetchRegistrationNotifier::~BackgroundFetchRegistrationNotifier() { … }
void BackgroundFetchRegistrationNotifier::AddObserver(
const std::string& unique_id,
mojo::PendingRemote<blink::mojom::BackgroundFetchRegistrationObserver>
observer) { … }
void BackgroundFetchRegistrationNotifier::Notify(
const std::string& unique_id,
const blink::mojom::BackgroundFetchRegistrationData& registration_data) { … }
void BackgroundFetchRegistrationNotifier::NotifyRecordsUnavailable(
const std::string& unique_id) { … }
void BackgroundFetchRegistrationNotifier::AddObservedUrl(
const std::string& unique_id,
const GURL& url) { … }
void BackgroundFetchRegistrationNotifier::NotifyRequestCompleted(
const std::string& unique_id,
blink::mojom::FetchAPIRequestPtr request,
blink::mojom::FetchAPIResponsePtr response) { … }
void BackgroundFetchRegistrationNotifier::OnConnectionError(
const std::string& unique_id,
blink::mojom::BackgroundFetchRegistrationObserver* observer) { … }
}