| Index: third_party/WebKit/Source/bindings/core/v8/ErrorEventDispatcher.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ErrorEventDispatcher.h b/third_party/WebKit/Source/bindings/core/v8/ErrorEventDispatcher.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f9b9c16d4c3ea9be831ea20951f770bfe10d5cf0
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ErrorEventDispatcher.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2016 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 ErrorEventDispatcher_h
|
| +#define ErrorEventDispatcher_h
|
| +
|
| +#include "core/CoreExport.h"
|
| +#include "core/fetch/AccessControlStatus.h"
|
| +#include "wtf/text/WTFString.h"
|
| +#include <v8.h>
|
| +
|
| +namespace blink {
|
| +
|
| +class ExceptionState;
|
| +class ScriptState;
|
| +class SourceLocation;
|
| +
|
| +class CORE_EXPORT ErrorEventDispatcher {
|
| + STATIC_ONLY(ErrorEventDispatcher);
|
| +public:
|
| + static void dispatchErrorEvent(ScriptState*, ExceptionState&,
|
| + v8::Local<v8::Function>);
|
| + static void dispatchErrorEvent(ScriptState*, v8::Local<v8::Value> exception,
|
| + const String& message, v8::Local<v8::Function>);
|
| + static void dispatchErrorEvent(ScriptState*, v8::Local<v8::Value> exception,
|
| + const String& message,
|
| + std::unique_ptr<SourceLocation>, const v8::ScriptOriginOptions&);
|
| +
|
| + static AccessControlStatus accessControlStatusFromScriptOriginOptions(
|
| + const v8::ScriptOriginOptions&);
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // ErrorEventDispatcher_h
|
|
|