blob: fc0a72a34708cca49e9c0304dce5a8033f65745e [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 "platform/wtf/Allocator.h"
#include "public/platform/modules/presentation/WebPresentationError.h"
namespace blink {
class DOMException;
// A container of methods taking care of WebPresentationError in WebCallbacks
// subclasses.
class PresentationError final {
STATIC_ONLY(PresentationError);
public:
// For CallbackPromiseAdapter.
using WebType = const WebPresentationError&;
static DOMException* Take(const WebPresentationError&);
};
} // namespace blink
#endif // PresentationError_h