michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set sw=2 ts=8 et tw=80 : */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef RtspControllerParent_h michael@0: #define RtspControllerParent_h michael@0: michael@0: #include "mozilla/net/PRtspControllerParent.h" michael@0: #include "mozilla/net/NeckoParent.h" michael@0: #include "nsIStreamingProtocolController.h" michael@0: #include "nsIInterfaceRequestor.h" michael@0: #include "nsILoadContext.h" michael@0: #include "nsIURI.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "nsString.h" michael@0: michael@0: class nsIAuthPromptProvider; michael@0: michael@0: namespace mozilla { michael@0: namespace net { michael@0: michael@0: class RtspControllerParent : public PRtspControllerParent michael@0: , public nsIInterfaceRequestor michael@0: , public nsIStreamingProtocolListener michael@0: { michael@0: public: michael@0: NS_DECL_THREADSAFE_ISUPPORTS michael@0: NS_DECL_NSIINTERFACEREQUESTOR michael@0: NS_DECL_NSISTREAMINGPROTOCOLLISTENER michael@0: michael@0: RtspControllerParent(); michael@0: ~RtspControllerParent(); michael@0: michael@0: bool RecvAsyncOpen(const URIParams& aURI); michael@0: bool RecvPlay(); michael@0: bool RecvPause(); michael@0: bool RecvResume(); michael@0: bool RecvSuspend(); michael@0: bool RecvSeek(const uint64_t& offset); michael@0: bool RecvStop(); michael@0: michael@0: private: michael@0: bool mIPCOpen; michael@0: void ActorDestroy(ActorDestroyReason why); michael@0: // RTSP URL refer to a stream or an aggregate of streams. michael@0: nsCOMPtr mURI; michael@0: // The nsIStreamingProtocolController implementation. michael@0: nsCOMPtr mController; michael@0: uint32_t mTotalTracks; michael@0: // Ensure we are destroyed on the main thread. michael@0: void Destroy(); michael@0: }; michael@0: michael@0: } // namespace net michael@0: } // namespace mozilla michael@0: #endif // RtspControllerParent_h