chromium/content/browser/picture_in_picture/picture_in_picture_session.h

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_BROWSER_PICTURE_IN_PICTURE_PICTURE_IN_PICTURE_SESSION_H_
#define CONTENT_BROWSER_PICTURE_IN_PICTURE_PICTURE_IN_PICTURE_SESSION_H_

#include "base/memory/raw_ptr.h"
#include "content/public/browser/media_player_id.h"
#include "media/mojo/mojom/media_player.mojom.h"
#include "mojo/public/cpp/bindings/associated_remote.h"
#include "mojo/public/cpp/bindings/pending_associated_remote.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "third_party/blink/public/mojom/picture_in_picture/picture_in_picture.mojom.h"

namespace content {

class PictureInPictureServiceImpl;
class VideoPictureInPictureWindowControllerImpl;
class WebContentsImpl;

// The PictureInPictureSession is used for video Picture-in-Picture mode. It
// communicates with the PictureInPictureWindowController and the
// WebContents. It is created by the VideoPictureInPictureWindowControllerImpl
// which also deletes it. When created, the session will be expected to be
// active (in Picture-in-Picture) and when deleted, it will automatically exit
// Picture-in-Picture unless another session became active.
//
// The session MUST be stopped before its dtor runs to avoid unexpected
// deletion.
class PictureInPictureSession : public blink::mojom::PictureInPictureSession {};

}  // namespace content

#endif  // CONTENT_BROWSER_PICTURE_IN_PICTURE_PICTURE_IN_PICTURE_SESSION_H_