author Gerald Squelart <>
Fri, 11 Nov 2016 11:25:52 +1100
changeset 367314 680467d99ed63d1b3a37e5c61d3c4302f5181418
parent 316616 824b152131b6076926df81931cb4ec1ee80aab97
child 369870 39ac4382a2c019178604b90acd816753fe142908
permissions -rw-r--r--
Bug 1316524 - Use 'media.wmf.skip-blacklist' to set some gfxVars - r=mattwoodrow Reversing bug 1313343, as MediaPrefs are not available from the UI process. Instead media.wmf.skip-blacklist is used when setting D3D-blacklisting gfxVars, leaving them empty if we want to skip these blacklists. MozReview-Commit-ID: JYED4ovC0jq

/* 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 */

#ifndef mozilla_dom_MessagePortChild_h
#define mozilla_dom_MessagePortChild_h

#include "mozilla/Assertions.h"
#include "mozilla/dom/PMessagePortChild.h"
#include "nsISupportsImpl.h"

namespace mozilla {
namespace dom {

class MessagePort;

class MessagePortChild final : public PMessagePortChild

  MessagePortChild() : mPort(nullptr) {}

  void SetPort(MessagePort* aPort)
    mPort = aPort;


  virtual bool
  RecvEntangled(nsTArray<MessagePortMessage>&& aMessages) override;

  virtual bool
  RecvReceiveData(nsTArray<MessagePortMessage>&& aMessages) override;

  virtual bool RecvStopSendingDataConfirmed() override;

  virtual void ActorDestroy(ActorDestroyReason aWhy) override;

  // This is a raw pointer because this child is owned by this MessagePort.
  MessagePort* mPort;

} // namespace dom
} // namespace mozilla

#endif // mozilla_dom_MessagePortChild_h