author John Dai <>
Fri, 08 Feb 2019 13:02:08 +0000
changeset 516121 b482c6618d72ac38a9a82fbccf425e0a7f8b6129
parent 513564 e8f9d3cdb231f0ef1dd9aec131fea1f3193a7a56
child 525439 4a210c9266ed6b586b3c5f0a6ce602b5f7e75043
permissions -rw-r--r--
Bug 1513877 - Implement send and receive methods for base WindowActor class. r=nika Differential Revision:

/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
/* vim: set sw=2 ts=8 et tw=80 ft=cpp : */
/* 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 */

include protocol PBrowser;
include protocol PInProcess;

include DOMTypes;

namespace mozilla {
namespace dom {

 * A PWindowGlobal actor has a lifetime matching that of a single Window Global,
 * specifically a |nsGlobalWindowInner|. These actors will form a parent/child
 * link either between the chrome/content process, or will be in-process, for
 * documents which are loaded in the chrome process.
async protocol PWindowGlobal
  manager PBrowser or PInProcess;

  async __delete__();

  async AsyncMessage(nsString aActorName, nsString aMessage, ClonedMessageData aData);

  /// Update the URI of the document in this WindowGlobal.
  async UpdateDocumentURI(nsIURI aUri);

  /// Notify the parent that this PWindowGlobal is now the current global.
  async BecomeCurrentWindowGlobal();

  async Destroy();

} // namespace dom
} // namespace mozilla