Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(631)

Unified Diff: chrome/browser/media/router/presentation_service_delegate_impl.h

Issue 2517833004: [MR] Cancel auto-switching from tab mirroring to Cast SDK at page navigation based on user pref (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698