tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

MIDIManagerParent.h (1137B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef mozilla_dom_MIDIManagerParent_h
      8 #define mozilla_dom_MIDIManagerParent_h
      9 
     10 #include "mozilla/dom/PMIDIManagerParent.h"
     11 
     12 namespace mozilla::dom {
     13 
     14 /**
     15 * Actor implementation for the Parent (PBackground thread) side of MIDIManager
     16 * (represented in DOM by MIDIAccess). Manages actor lifetime so that we know
     17 * to shut down services when all MIDIManagers are gone.
     18 *
     19 */
     20 class MIDIManagerParent final : public PMIDIManagerParent {
     21 public:
     22  NS_INLINE_DECL_THREADSAFE_REFCOUNTING(MIDIManagerParent, override)
     23  MIDIManagerParent() = default;
     24  mozilla::ipc::IPCResult RecvRefresh();
     25  mozilla::ipc::IPCResult RecvShutdown();
     26  void ActorDestroy(ActorDestroyReason aWhy) override;
     27 
     28 private:
     29  ~MIDIManagerParent() = default;
     30 };
     31 
     32 }  // namespace mozilla::dom
     33 
     34 #endif  // mozilla_dom_MIDIManagerParent_h