tor-browser

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

AudioWorklet.h (952B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
      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_AudioWorklet_h
      8 #define mozilla_dom_AudioWorklet_h
      9 
     10 #include "mozilla/dom/Worklet.h"
     11 
     12 namespace mozilla::dom {
     13 
     14 class MessagePort;
     15 
     16 class AudioWorklet final : public Worklet {
     17 public:
     18  NS_DECL_ISUPPORTS_INHERITED
     19  NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(AudioWorklet, Worklet)
     20 
     21  AudioWorklet(nsPIDOMWindowInner* aWindow, RefPtr<WorkletImpl> aImpl,
     22               nsISupports* aOwnedObject, MessagePort* aPort);
     23 
     24  MessagePort* Port() const { return mPort; };
     25 
     26 private:
     27  ~AudioWorklet() = default;
     28 
     29  RefPtr<MessagePort> mPort;
     30 };
     31 
     32 }  // namespace mozilla::dom
     33 
     34 #endif  // mozilla_dom_AudioWorklet_h