author Benjamin Chen <>
Mon, 23 Sep 2013 18:12:11 +0800
changeset 165531 13746e3db7caf27555f126fe5fc7dd7eccb442b0
child 172058 a94878b0a97b102e565833cdabc38d658e61b8d5
permissions -rw-r--r--
Bug 831645 - Part1, Add Rtsp protocol and streaming protocol interface. r=jduell.mcbugs, sworkman

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set sw=2 ts=8 et tw=80 : */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

#ifndef RtspControllerParent_h
#define RtspControllerParent_h

#include "mozilla/net/PRtspControllerParent.h"
#include "mozilla/net/NeckoParent.h"
#include "nsIStreamingProtocolController.h"
#include "nsIInterfaceRequestor.h"
#include "nsILoadContext.h"
#include "nsIURI.h"
#include "nsCOMPtr.h"
#include "nsString.h"

class nsIAuthPromptProvider;

namespace mozilla {
namespace net {

class RtspControllerParent : public PRtspControllerParent
                           , public nsIInterfaceRequestor
                           , public nsIStreamingProtocolListener


  bool RecvAsyncOpen(const URIParams& aURI);
  bool RecvPlay();
  bool RecvPause();
  bool RecvResume();
  bool RecvSuspend();
  bool RecvSeek(const uint64_t& offset);
  bool RecvStop();

  bool mIPCOpen;
  void ActorDestroy(ActorDestroyReason why);
  // RTSP URL refer to a stream or an aggregate of streams.
  nsCOMPtr<nsIURI> mURI;
  // The nsIStreamingProtocolController implementation.
  nsCOMPtr<nsIStreamingProtocolController> mController;

} // namespace net
} // namespace mozilla
#endif // RtspControllerParent_h