#include "components/media_router/browser/presentation/local_presentation_manager.h"
#include <utility>
#include "base/containers/contains.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/web_contents.h"
#include "url/gurl.h"
PresentationConnectionResult;
PresentationInfo;
namespace media_router {
LocalPresentationManager::LocalPresentationManager() { … }
LocalPresentationManager::~LocalPresentationManager() { … }
LocalPresentationManager::LocalPresentation*
LocalPresentationManager::GetOrCreateLocalPresentation(
const PresentationInfo& presentation_info) { … }
void LocalPresentationManager::RegisterLocalPresentationController(
const PresentationInfo& presentation_info,
const content::GlobalRenderFrameHostId& render_frame_host_id,
mojo::PendingRemote<blink::mojom::PresentationConnection>
controller_connection_remote,
mojo::PendingReceiver<blink::mojom::PresentationConnection>
receiver_connection_receiver,
const MediaRoute& route) { … }
void LocalPresentationManager::UnregisterLocalPresentationController(
const std::string& presentation_id,
const content::GlobalRenderFrameHostId& render_frame_host_id) { … }
void LocalPresentationManager::OnLocalPresentationReceiverCreated(
const PresentationInfo& presentation_info,
const content::ReceiverConnectionAvailableCallback& receiver_callback,
content::WebContents* receiver_web_contents) { … }
void LocalPresentationManager::OnLocalPresentationReceiverTerminated(
const std::string& presentation_id) { … }
bool LocalPresentationManager::IsLocalPresentation(
const std::string& presentation_id) { … }
bool LocalPresentationManager::IsLocalPresentation(
content::WebContents* web_contents) { … }
const MediaRoute* LocalPresentationManager::GetRoute(
const std::string& presentation_id) { … }
LocalPresentationManager::LocalPresentation::LocalPresentation(
const PresentationInfo& presentation_info)
: … { … }
LocalPresentationManager::LocalPresentation::~LocalPresentation() { … }
void LocalPresentationManager::LocalPresentation::RegisterController(
const content::GlobalRenderFrameHostId& render_frame_host_id,
mojo::PendingRemote<blink::mojom::PresentationConnection>
controller_connection_remote,
mojo::PendingReceiver<blink::mojom::PresentationConnection>
receiver_connection_receiver,
const MediaRoute& route) { … }
void LocalPresentationManager::LocalPresentation::UnregisterController(
const content::GlobalRenderFrameHostId& render_frame_host_id) { … }
void LocalPresentationManager::LocalPresentation::RegisterReceiver(
const content::ReceiverConnectionAvailableCallback& receiver_callback,
content::WebContents* receiver_web_contents) { … }
bool LocalPresentationManager::LocalPresentation::IsValid() const { … }
LocalPresentationManager::LocalPresentation::ControllerConnection::
ControllerConnection(
mojo::PendingRemote<blink::mojom::PresentationConnection>
controller_connection_remote,
mojo::PendingReceiver<blink::mojom::PresentationConnection>
receiver_connection_receiver)
: … { … }
LocalPresentationManager::LocalPresentation::ControllerConnection::
~ControllerConnection() { … }
}