uriloader/exthandler/PHandlerService.ipdl
author moz-wptsync-bot <wptsync@mozilla.com>
Mon, 16 Apr 2018 18:38:41 +0000
changeset 1486024 3a644abd5eaa108f67471c0aae4fb4a424ea41bf
parent 1351893 469978a83f5c79e5598d0ab2095260d7cec0a91c
child 1483896 0cf8fbcf50a382dc219fd9796df9a8018e1e57dc
child 1492904 9130a0ae777a70c5fa0c2ee3aa10200dfa85c321
child 1526804 d494c91279b21d1cc26e2a36ac0c24ce5c55c321
child 1549016 6e5891872dd9b6bec8d677ac0daa02fbe019e05f
child 1550242 ebb1e78e1818b32755efad4beab37ebb8d45e985
child 1806208 a31f9f8fd36838048fc8fef70e36784aa2b7b8f2
child 1848314 08a68b6d992ef951b3e8538394e42b51f12da834
child 1864200 7645f05ea24cac70cf160fac990e04cb6c9895fd
permissions -rw-r--r--
Bug 1454380 [wpt PR 8508] - Update wpt metadata, a=testonly wpt-pr: 8508 wpt-type: metadata

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

include protocol PContent;

namespace mozilla {
namespace dom {

struct HandlerApp {
  nsString name;
  nsString detailedDescription;
};

struct HandlerInfo {
  nsCString type;
  bool isMIMEInfo;
  nsString description;
  bool alwaysAskBeforeHandling;
  nsCString[] extensions;
  HandlerApp preferredApplicationHandler;
  HandlerApp[] possibleApplicationHandlers;
  long preferredAction;
};

sync protocol PHandlerService
{
  manager PContent;

parent:
  sync FillHandlerInfo(HandlerInfo aHandlerInfoData,
                       nsCString aOverrideType)
      returns (HandlerInfo handlerInfoData);
  sync ExistsForProtocol(nsCString aProtocolScheme)
      returns (bool exists);
  sync Exists(HandlerInfo aHandlerInfo)
      returns (bool exists);
  sync GetTypeFromExtension(nsCString aFileExtension)
      returns (nsCString type);
  async __delete__();
};


} // namespace dom
} // namespace mozilla