Index: Source/modules/beacon/NavigatorBeacon.idl |
diff --git a/Source/modules/beacon/NavigatorBeacon.idl b/Source/modules/beacon/NavigatorBeacon.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..589aa663946e0c2bc3e0a5094fcaf95a7468fd01 |
--- /dev/null |
+++ b/Source/modules/beacon/NavigatorBeacon.idl |
@@ -0,0 +1,13 @@ |
+// Copyright 2014 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. |
+ |
+[ |
+ RuntimeEnabled=Beacon, |
+] partial interface Navigator { |
+ [ CallWith=ExecutionContext, RaisesException ] boolean sendBeacon(DOMString url, ArrayBufferView data); |
+ [ CallWith=ExecutionContext, RaisesException ] boolean sendBeacon(DOMString url, Blob data); |
+ [ CallWith=ExecutionContext, RaisesException ] boolean sendBeacon(DOMString url, FormData data); |
+ [ CallWith=ExecutionContext, RaisesException ] boolean sendBeacon(DOMString url, [Default=Undefined] optional DOMString data); |
+}; |
+ |