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

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

Issue 2138013003: media::mojom::Remoter and CastRemotingConnector/Sender (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split-out some interfaces in prep for landing multi-part changes. Created 4 years, 5 months 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
« no previous file with comments | « chrome/browser/media/router/media_router.gypi ('k') | chrome/browser/media/router/media_source_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/router/media_source_helper.h
diff --git a/chrome/browser/media/router/media_source_helper.h b/chrome/browser/media/router/media_source_helper.h
index 0e2822a99025ea979ed7e9520a0385cce6e02f8e..7e03d6985b1de255081c898c51b6a60a9f3f6f68 100644
--- a/chrome/browser/media/router/media_source_helper.h
+++ b/chrome/browser/media/router/media_source_helper.h
@@ -9,6 +9,10 @@
#include "chrome/browser/media/router/media_source.h"
+namespace content {
+class WebContents;
+}
+
namespace media_router {
// Helper library for protocol-specific media source object creation.
@@ -27,6 +31,10 @@ bool IsMirroringMediaSource(const MediaSource& source);
// Does not deeper protocol-level syntax checks.
bool IsValidMediaSource(const MediaSource& source);
+// Looks up the content::WebContents instance for |source|. If |source| is
+// invalid, nullptr is returned.
+content::WebContents* WebContentsFromMediaSource(const MediaSource& source);
+
// Extracts the presentation URL from |source|.
// If |source| is invalid, an empty string is returned.
std::string PresentationUrlFromMediaSource(const MediaSource& source);
« no previous file with comments | « chrome/browser/media/router/media_router.gypi ('k') | chrome/browser/media/router/media_source_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698