Index: chrome/browser/media/router/presentation_service_delegate_impl.h |
diff --git a/chrome/browser/media/router/presentation_service_delegate_impl.h b/chrome/browser/media/router/presentation_service_delegate_impl.h |
index dfa9a4a9ffcffd244a1146f62ad5d57621480171..1549f75d98a0d38b71e25080e9101c08648d5658 100644 |
--- a/chrome/browser/media/router/presentation_service_delegate_impl.h |
+++ b/chrome/browser/media/router/presentation_service_delegate_impl.h |
@@ -30,6 +30,10 @@ struct PresentationSessionInfo; |
struct PresentationSessionMessage; |
} // namespace content |
+namespace url { |
+class Origin; |
+} // namespace url |
+ |
namespace media_router { |
class MediaRoute; |
@@ -194,6 +198,11 @@ class PresentationServiceDelegateImpl |
const content::PresentationSessionInfo& new_session, |
const MediaRoute& route); |
+#if !defined(OS_ANDROID) |
+ // Returns true if auto-join requests should be cancelled for |origin|. |
+ bool ShouldCancelAutoJoinForOrigin(const url::Origin& origin) const; |
+#endif |
+ |
// References to the WebContents that owns this instance, and associated |
// browser profile's MediaRouter instance. |
content::WebContents* const web_contents_; |