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

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: Revert CSP checking on redirects Created 6 years, 7 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
« no previous file with comments | « Source/modules/beacon/NavigatorBeacon.cpp ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+};
+
« no previous file with comments | « Source/modules/beacon/NavigatorBeacon.cpp ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698