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

Unified Diff: chrome/browser/media/router/offscreen_presentation_manager.cc

Issue 2355723004: [Presentation API] 1-UA: send message between controller and receiver page (Closed)
Patch Set: Merge with changes in Issue 2343013002 Created 4 years, 3 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
Index: chrome/browser/media/router/offscreen_presentation_manager.cc
diff --git a/chrome/browser/media/router/offscreen_presentation_manager.cc b/chrome/browser/media/router/offscreen_presentation_manager.cc
index 5ccf31f143a39d0b2e83e7de33260d2ee26da2da..e01498c8eaff462a60852e25719beba768587d12 100644
--- a/chrome/browser/media/router/offscreen_presentation_manager.cc
+++ b/chrome/browser/media/router/offscreen_presentation_manager.cc
@@ -20,6 +20,7 @@ OffscreenPresentationManager::~OffscreenPresentationManager() {}
void OffscreenPresentationManager::RegisterOffscreenPresentationController(
const std::string& presentation_id,
+ const std::string& presentation_url,
int render_frame_id,
content::OffscreenPresentationClient* controller) {
DVLOG(2) << __FUNCTION__ << " [presentation_id]: " << presentation_id
@@ -29,9 +30,9 @@ void OffscreenPresentationManager::RegisterOffscreenPresentationController(
// Create a new presentation.
if (it == offscreen_presentations_.end()) {
it = offscreen_presentations_
- .insert(std::make_pair(
- presentation_id,
- base::MakeUnique<OffscreenPresentation>(presentation_id)))
+ .insert(std::make_pair(presentation_id,
+ base::MakeUnique<OffscreenPresentation>(
+ presentation_id, presentation_url)))
.first;
}
it->second->RegisterController(render_frame_id, controller);
@@ -71,8 +72,12 @@ void OffscreenPresentationManager::UnregisterOffscreenPresentationReceiver(
}
// OffscreenPresentation implementation. ///////////////////////////////////////
-OffscreenPresentation::OffscreenPresentation(const std::string& presentation_id)
- : presentation_id_(presentation_id), receiver_callback_(nullptr) {}
+OffscreenPresentation::OffscreenPresentation(
+ const std::string& presentation_id,
+ const std::string& presentation_url)
+ : presentation_id_(presentation_id),
+ presentation_url_(presentation_url),
+ receiver_callback_(nullptr) {}
OffscreenPresentation::~OffscreenPresentation() {}

Powered by Google App Engine
This is Rietveld 408576698