michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: * michael@0: * The origins of this IDL file are michael@0: * http://url.spec.whatwg.org/#api michael@0: * http://dev.w3.org/2006/webapi/FileAPI/#creating-revoking michael@0: * http://dev.w3.org/2011/webrtc/editor/getusermedia.html#url michael@0: * michael@0: * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C michael@0: * liability, trademark and document use rules apply. michael@0: */ michael@0: michael@0: // [Constructor(DOMString url, optional (URL or DOMString) base = "about:blank")] michael@0: [Constructor(DOMString url, URL base), michael@0: Constructor(DOMString url, optional DOMString base = "about:blank")] michael@0: interface URL { michael@0: }; michael@0: URL implements URLUtils; michael@0: michael@0: partial interface URL { michael@0: [Throws] michael@0: static DOMString? createObjectURL(Blob blob, optional objectURLOptions options); michael@0: [Throws] michael@0: static DOMString? createObjectURL(MediaStream stream, optional objectURLOptions options); michael@0: static void revokeObjectURL(DOMString url); michael@0: }; michael@0: michael@0: dictionary objectURLOptions michael@0: { michael@0: /* boolean autoRevoke = true; */ /* not supported yet */ michael@0: }; michael@0: michael@0: // https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html michael@0: partial interface URL { michael@0: [Throws] michael@0: static DOMString? createObjectURL(MediaSource source, optional objectURLOptions options); michael@0: };