Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1683)

Unified Diff: Source/modules/beacon/NavigatorBeacon.idl

Issue 232053005: Implement navigator.sendBeacon() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adjust unrelated test expectation Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..f8d545b2a12f1423a20cbba6cd40a6dcef1a344a
--- /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=BeaconAPI,
+] 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);
+};
+

Powered by Google App Engine
This is Rietveld 408576698