dom/presentation/PresentationSessionRequest.h
author Nick Alexander <nalexander@mozilla.com>
Tue, 20 Oct 2015 15:32:50 -0700
changeset 302267 479539a438420df4feddae381c74c61be108bf5a
parent 272011 bd079aadd3feeee3f9b9f73c5e0bc4bd6a870722
child 505383 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Bug 1123416 - Part 5: Make a 'thirdparty' Gradle project in the source directory. r=sebastian I don't want to cut consumers of $OBJDIR/mobile/android/gradle over yet, so this doesn't remove the existing 'thirdparty' project.

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 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 http://mozilla.org/MPL/2.0/. */

#ifndef mozilla_dom_PresentationSessionRequest_h__
#define mozilla_dom_PresentationSessionRequest_h__

#include "nsIPresentationSessionRequest.h"
#include "nsCOMPtr.h"
#include "nsString.h"

namespace mozilla {
namespace dom {

class PresentationSessionRequest final : public nsIPresentationSessionRequest
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPRESENTATIONSESSIONREQUEST

  PresentationSessionRequest(nsIPresentationDevice* aDevice,
                             const nsAString& aUrl,
                             const nsAString& aPresentationId,
                             nsIPresentationControlChannel* aControlChannel);

private:
  virtual ~PresentationSessionRequest();

  nsString mUrl;
  nsString mPresentationId;
  nsCOMPtr<nsIPresentationDevice> mDevice;
  nsCOMPtr<nsIPresentationControlChannel> mControlChannel;
};

} // namespace dom
} // namespace mozilla

#endif /* mozilla_dom_PresentationSessionRequest_h__ */