#include "components/media_router/browser/media_router_dialog_controller.h"
#include <utility>
#include "base/memory/raw_ptr.h"
#include "base/no_destructor.h"
#include "components/media_router/browser/media_router_metrics.h"
#include "components/media_router/browser/presentation/start_presentation_context.h"
#include "components/media_router/common/media_route.h"
#include "components/media_router/common/route_request_result.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_delegate.h"
#include "third_party/blink/public/mojom/presentation/presentation.mojom.h"
namespace media_router {
MediaRouterDialogController::GetOrCreate& GetGetOrCreate() { … }
void MediaRouterDialogController::SetGetOrCreate(
const MediaRouterDialogController::GetOrCreate& get_or_create) { … }
MediaRouterDialogController*
MediaRouterDialogController::GetOrCreateForWebContents(
content::WebContents* web_contents) { … }
class MediaRouterDialogController::InitiatorWebContentsObserver
: public content::WebContentsObserver { … };
MediaRouterDialogController::MediaRouterDialogController(
content::WebContents* initiator)
: … { … }
MediaRouterDialogController::~MediaRouterDialogController() { … }
bool MediaRouterDialogController::ShowMediaRouterDialogForPresentation(
std::unique_ptr<StartPresentationContext> context) { … }
bool MediaRouterDialogController::ShowMediaRouterDialog(
MediaRouterDialogActivationLocation activation_location) { … }
void MediaRouterDialogController::HideMediaRouterDialog() { … }
void MediaRouterDialogController::FocusOnMediaRouterDialog(
bool dialog_needs_creation,
MediaRouterDialogActivationLocation activation_location) { … }
void MediaRouterDialogController::Reset() { … }
}