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

Unified Diff: content/renderer/presentation/presentation_dispatcher.cc

Issue 1430413003: [Media Router] Connection state change listening redesign part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « content/renderer/presentation/presentation_dispatcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/presentation/presentation_dispatcher.cc
diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc
index bcb33fade30ea6d9f49c6df76fface4e4235df51..9c7e0aee127f15bca6b6578408d860f4af8e65a8 100644
--- a/content/renderer/presentation/presentation_dispatcher.cc
+++ b/content/renderer/presentation/presentation_dispatcher.cc
@@ -363,16 +363,16 @@ void PresentationDispatcher::OnSessionCreated(
presentation_service_->ListenForSessionMessages(session_info.Pass());
}
-void PresentationDispatcher::OnSessionStateChanged(
- presentation::PresentationSessionInfoPtr session_info,
- presentation::PresentationConnectionState session_state) {
+void PresentationDispatcher::OnConnectionStateChanged(
+ presentation::PresentationSessionInfoPtr connection,
+ presentation::PresentationConnectionState state) {
if (!controller_)
return;
- DCHECK(!session_info.is_null());
+ DCHECK(!connection.is_null());
controller_->didChangeSessionState(
- new PresentationConnectionClient(session_info.Pass()),
- GetWebPresentationConnectionStateFromMojo(session_state));
+ new PresentationConnectionClient(connection.Pass()),
+ GetWebPresentationConnectionStateFromMojo(state));
}
void PresentationDispatcher::OnSessionMessagesReceived(
@@ -420,8 +420,6 @@ void PresentationDispatcher::ConnectToPresentationServiceIfNeeded() {
presentation::PresentationServiceClientPtr client_ptr;
binding_.Bind(GetProxy(&client_ptr));
presentation_service_->SetClient(client_ptr.Pass());
-
- presentation_service_->ListenForSessionStateChange();
}
void PresentationDispatcher::UpdateListeningState(AvailabilityStatus* status) {
« no previous file with comments | « content/renderer/presentation/presentation_dispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698