Index: chrome/browser/media/router/presentation_service_delegate_impl.cc |
diff --git a/chrome/browser/media/router/presentation_service_delegate_impl.cc b/chrome/browser/media/router/presentation_service_delegate_impl.cc |
index bc145d2d57daccb92b092bbb7ea530b914eeb863..0123d5024eed9c5b8f6333ef49f6fd173b35acbc 100644 |
--- a/chrome/browser/media/router/presentation_service_delegate_impl.cc |
+++ b/chrome/browser/media/router/presentation_service_delegate_impl.cc |
@@ -730,6 +730,21 @@ void PresentationServiceDelegateImpl::CloseSession( |
DVLOG(1) << "No active route for: " << presentation_id; |
return; |
} |
+ |
+ // TODO(mfoltz): implement CloseSession(). Probably rename CloseRoute()? |
+ NOTIMPLEMENTED(); |
whywhat
2015/11/20 06:26:49
This can probably implemented similar to onPresent
mark a. foltz
2015/11/20 17:47:17
This should call router_->OnPresentationSessionDet
mlamouri (slow - plz ping)
2015/11/27 11:48:47
Rebased. I left the TODO. I will have a look in a
|
+} |
+ |
+void PresentationServiceDelegateImpl::TerminateSession( |
+ int render_process_id, |
+ int render_frame_id, |
+ const std::string& presentation_id) { |
+ const MediaRoute::Id& route_id = frame_manager_->GetRouteId( |
+ RenderFrameHostId(render_process_id, render_frame_id), presentation_id); |
+ if (route_id.empty()) { |
+ DVLOG(1) << "No active route for: " << presentation_id; |
+ return; |
+ } |
router_->CloseRoute(route_id); |
} |