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

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: Address Mark's comments 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..5747bb72c8c26d46389c4d64e06e92ad42c4229e 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,9 @@ class PresentationServiceDelegateImpl
const content::PresentationSessionInfo& new_session,
const MediaRoute& route);
+ // Returns true if auto-join requests should be cancelled for |origin|.
+ bool ShouldOverrideAutoJoinForOrigin(const url::Origin& origin) const;
mark a. foltz 2016/12/05 21:32:22 ShouldCancelAutoJoinForOrigin?
takumif 2016/12/06 02:21:58 Changed.
+
// 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