blob: c295b1ad87283d71fe44b6440e6a6ca21e9ce1aa [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PresentationError_h
#define PresentationError_h
#include "platform/heap/Handle.h"
#include "public/platform/modules/presentation/WebPresentationError.h"
#include "wtf/Allocator.h"
namespace blink {
class DOMException;
class ScriptPromiseResolver;
// A container of methods taking care of WebPresentationError in WebCallbacks subclasses.
class PresentationError final {
// For CallbackPromiseAdapter.
using WebType = const WebPresentationError&;
static DOMException* take(ScriptPromiseResolver*, const WebPresentationError&);
} // namespace blink
#endif // PresentationError_h