| Index: chrome/browser/ui/webui/media_router/media_router_ui.h
|
| diff --git a/chrome/browser/ui/webui/media_router/media_router_ui.h b/chrome/browser/ui/webui/media_router/media_router_ui.h
|
| index dd329318b9f080aece510d8be5b168f4ab7758cc..eb9e77be7bd914bcee0da08f60bb34d7cc90cd33 100644
|
| --- a/chrome/browser/ui/webui/media_router/media_router_ui.h
|
| +++ b/chrome/browser/ui/webui/media_router/media_router_ui.h
|
| @@ -128,6 +128,14 @@ class MediaRouterUI : public ConstrainedWebDialogUI,
|
| const std::string& domain,
|
| MediaCastMode cast_mode);
|
|
|
| + // Returns true if the cast mode last chosen for the current hostname is tab
|
| + // mirroring.
|
| + bool UserSelectedTabMirroringForCurrentHost() const;
|
| +
|
| + // Records the cast mode selection for the current hostname, unless the cast
|
| + // mode is MediaCastMode::DESKTOP_MIRROR.
|
| + void RecordCastModeSelection(MediaCastMode cast_mode);
|
| +
|
| // Returns the hostname of the default source's parent frame URL.
|
| std::string GetPresentationRequestSourceName() const;
|
| std::string GetTruncatedPresentationRequestSourceName() const;
|
| @@ -276,6 +284,10 @@ class MediaRouterUI : public ConstrainedWebDialogUI,
|
| // Otherwise returns an empty GURL.
|
| GURL GetFrameURL() const;
|
|
|
| + // Returns the hostname (e.g. "cs.chromium.org") for |initiator_|, or an empty
|
| + // string if |initiator_| is not set.
|
| + std::string GetInitiatorHostname() const;
|
| +
|
| // Owned by the |web_ui| passed in the ctor, and guaranteed to be deleted
|
| // only after it has deleted |this|.
|
| MediaRouterWebUIMessageHandler* handler_;
|
|
|