netwerk/protocol/rtsp/controller/RtspControllerParent.h

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

michael@0 1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* vim: set sw=2 ts=8 et tw=80 : */
michael@0 3 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 #ifndef RtspControllerParent_h
michael@0 8 #define RtspControllerParent_h
michael@0 9
michael@0 10 #include "mozilla/net/PRtspControllerParent.h"
michael@0 11 #include "mozilla/net/NeckoParent.h"
michael@0 12 #include "nsIStreamingProtocolController.h"
michael@0 13 #include "nsIInterfaceRequestor.h"
michael@0 14 #include "nsILoadContext.h"
michael@0 15 #include "nsIURI.h"
michael@0 16 #include "nsCOMPtr.h"
michael@0 17 #include "nsString.h"
michael@0 18
michael@0 19 class nsIAuthPromptProvider;
michael@0 20
michael@0 21 namespace mozilla {
michael@0 22 namespace net {
michael@0 23
michael@0 24 class RtspControllerParent : public PRtspControllerParent
michael@0 25 , public nsIInterfaceRequestor
michael@0 26 , public nsIStreamingProtocolListener
michael@0 27 {
michael@0 28 public:
michael@0 29 NS_DECL_THREADSAFE_ISUPPORTS
michael@0 30 NS_DECL_NSIINTERFACEREQUESTOR
michael@0 31 NS_DECL_NSISTREAMINGPROTOCOLLISTENER
michael@0 32
michael@0 33 RtspControllerParent();
michael@0 34 ~RtspControllerParent();
michael@0 35
michael@0 36 bool RecvAsyncOpen(const URIParams& aURI);
michael@0 37 bool RecvPlay();
michael@0 38 bool RecvPause();
michael@0 39 bool RecvResume();
michael@0 40 bool RecvSuspend();
michael@0 41 bool RecvSeek(const uint64_t& offset);
michael@0 42 bool RecvStop();
michael@0 43
michael@0 44 private:
michael@0 45 bool mIPCOpen;
michael@0 46 void ActorDestroy(ActorDestroyReason why);
michael@0 47 // RTSP URL refer to a stream or an aggregate of streams.
michael@0 48 nsCOMPtr<nsIURI> mURI;
michael@0 49 // The nsIStreamingProtocolController implementation.
michael@0 50 nsCOMPtr<nsIStreamingProtocolController> mController;
michael@0 51 uint32_t mTotalTracks;
michael@0 52 // Ensure we are destroyed on the main thread.
michael@0 53 void Destroy();
michael@0 54 };
michael@0 55
michael@0 56 } // namespace net
michael@0 57 } // namespace mozilla
michael@0 58 #endif // RtspControllerParent_h

mercurial