#include "third_party/blink/renderer/modules/background_fetch/background_fetch_bridge.h"
#include <utility>
#include "third_party/blink/public/platform/browser_interface_broker_proxy.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_background_fetch_options.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_image_resource.h"
#include "third_party/blink/renderer/modules/background_fetch/background_fetch_registration.h"
#include "third_party/blink/renderer/modules/background_fetch/background_fetch_type_converters.h"
namespace blink {
BackgroundFetchBridge* BackgroundFetchBridge::From(
ServiceWorkerRegistration* service_worker_registration) { … }
const char BackgroundFetchBridge::kSupplementName[] = …;
BackgroundFetchBridge::BackgroundFetchBridge(
ServiceWorkerRegistration& registration)
: … { … }
BackgroundFetchBridge::~BackgroundFetchBridge() = default;
void BackgroundFetchBridge::Trace(Visitor* visitor) const { … }
void BackgroundFetchBridge::GetIconDisplaySize(
GetIconDisplaySizeCallback callback) { … }
void BackgroundFetchBridge::Fetch(
const String& developer_id,
Vector<mojom::blink::FetchAPIRequestPtr> requests,
mojom::blink::BackgroundFetchOptionsPtr options,
const SkBitmap& icon,
mojom::blink::BackgroundFetchUkmDataPtr ukm_data,
RegistrationCallback callback) { … }
void BackgroundFetchBridge::GetRegistration(const String& developer_id,
RegistrationCallback callback) { … }
void BackgroundFetchBridge::DidGetRegistration(
RegistrationCallback callback,
mojom::blink::BackgroundFetchError error,
mojom::blink::BackgroundFetchRegistrationPtr registration_ptr) { … }
void BackgroundFetchBridge::GetDeveloperIds(GetDeveloperIdsCallback callback) { … }
mojom::blink::BackgroundFetchService* BackgroundFetchBridge::GetService() { … }
}