#include "third_party/blink/renderer/modules/presentation/presentation_connection_callbacks.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_throw_dom_exception.h"
#include "third_party/blink/renderer/modules/presentation/presentation_connection.h"
#include "third_party/blink/renderer/modules/presentation/presentation_error.h"
#include "third_party/blink/renderer/modules/presentation/presentation_request.h"
#if BUILDFLAG(IS_ANDROID)
#include "third_party/blink/renderer/modules/presentation/presentation_metrics.h"
#endif
namespace blink {
PresentationConnectionCallbacks::PresentationConnectionCallbacks(
ScriptPromiseResolver<PresentationConnection>* resolver,
PresentationRequest* request)
: … { … }
PresentationConnectionCallbacks::PresentationConnectionCallbacks(
ScriptPromiseResolver<PresentationConnection>* resolver,
ControllerPresentationConnection* connection)
: … { … }
void PresentationConnectionCallbacks::HandlePresentationResponse(
mojom::blink::PresentationConnectionResultPtr result,
mojom::blink::PresentationErrorPtr error) { … }
void PresentationConnectionCallbacks::OnSuccess(
const mojom::blink::PresentationInfo& presentation_info,
mojo::PendingRemote<mojom::blink::PresentationConnection> connection_remote,
mojo::PendingReceiver<mojom::blink::PresentationConnection>
connection_receiver) { … }
void PresentationConnectionCallbacks::OnError(
const mojom::blink::PresentationError& error) { … }
}