Index: modules/beacon/NavigatorBeacon.idl |
diff --git a/modules/beacon/NavigatorBeacon.idl b/modules/beacon/NavigatorBeacon.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..465c211059398f8f4fe2ef1800dac2286fcded04 |
--- /dev/null |
+++ b/modules/beacon/NavigatorBeacon.idl |
@@ -0,0 +1,15 @@ |
+// 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. |
+ |
+// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/Beacon/Overview.html#Navigator |
+ |
+[ |
+ RuntimeEnabled=Beacon, |
+] partial interface Navigator { |
+ // FIXME: should be union type http://crbug.com/240176 |
+ [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); |
+}; |