gecko-dev/hal/sandbox
Andrew McCreight 285012cef5 Bug 1864522 - Remove unused functionality from ModifyWakeLock. r=gsvelto
- WakeLock is never registered as an observer, so remove its nsIObserver
  interface to eliminate a use of mContentParentID.

- mContentParentID is always CONTENT_PROCESS_ID_UNKNOWN, so propagate that
  through to hal::ModifyWakeLock().

- Compute the child ID on the receiver side of the ModifyWakeLock message,
  instead of passing it in the message. We always use the child ID of the
  ContentChild.

- Rename the old ModifyWakeLock into ModifyWakeLockWithChildID. Rename
  aProcessID to aChildID, because it is not a PID.

- Add a new hal::ModifyWakeLock for the parent process that uses
  CONTENT_PROCESS_ID_MAIN as the child id. This method is not actually called
  right now.

Differential Revision: https://phabricator.services.mozilla.com/D193577
2023-11-16 00:14:10 +00:00
..
PHal.ipdl Bug 1864522 - Remove unused functionality from ModifyWakeLock. r=gsvelto 2023-11-16 00:14:10 +00:00
SandboxHal.cpp Bug 1864522 - Remove unused functionality from ModifyWakeLock. r=gsvelto 2023-11-16 00:14:10 +00:00
SandboxHal.h