PRemoteCDMActor.h (891B)
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 #ifndef include_dom_media_ipc_PRemoteCDMActor_h 7 #define include_dom_media_ipc_PRemoteCDMActor_h 8 9 #include "nsISupportsImpl.h" 10 11 namespace mozilla { 12 13 class PRemoteCDMChild; 14 class PRemoteCDMParent; 15 enum class RemoteMediaIn; 16 17 class PRemoteCDMActor { 18 public: 19 NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING 20 21 virtual PRemoteCDMChild* AsPRemoteCDMChild() { return nullptr; } 22 23 virtual PRemoteCDMParent* AsPRemoteCDMParent() { return nullptr; } 24 25 virtual RemoteMediaIn GetLocation() const = 0; 26 }; 27 28 } // namespace mozilla 29 30 #endif // include_dom_media_ipc_PRemoteCDMActor_h