#include "content/browser/picture_in_picture/picture_in_picture_session.h"
#include <utility>
#include "base/functional/callback_helpers.h"
#include "content/browser/picture_in_picture/picture_in_picture_service_impl.h"
#include "content/browser/picture_in_picture/video_picture_in_picture_window_controller_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
namespace content {
PictureInPictureSession::PictureInPictureSession(
PictureInPictureServiceImpl* service,
const MediaPlayerId& player_id,
mojo::PendingAssociatedRemote<media::mojom::MediaPlayer> player_remote,
mojo::PendingReceiver<blink::mojom::PictureInPictureSession> receiver,
mojo::PendingRemote<blink::mojom::PictureInPictureSessionObserver> observer)
: … { … }
PictureInPictureSession::~PictureInPictureSession() { … }
void PictureInPictureSession::Stop(StopCallback callback) { … }
void PictureInPictureSession::Update(
uint32_t player_id,
mojo::PendingAssociatedRemote<media::mojom::MediaPlayer> player_remote,
const viz::SurfaceId& surface_id,
const gfx::Size& natural_size,
bool show_play_pause_button) { … }
void PictureInPictureSession::OnPlayerGone() { … }
void PictureInPictureSession::NotifyWindowResized(const gfx::Size& size) { … }
mojo::AssociatedRemote<media::mojom::MediaPlayer>&
PictureInPictureSession::GetMediaPlayerRemote() { … }
void PictureInPictureSession::Disconnect() { … }
void PictureInPictureSession::Shutdown() { … }
void PictureInPictureSession::StopInternal(StopCallback callback) { … }
void PictureInPictureSession::OnConnectionError() { … }
WebContentsImpl* PictureInPictureSession::GetWebContentsImpl() { … }
VideoPictureInPictureWindowControllerImpl&
PictureInPictureSession::GetController() { … }
}