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

Unified Diff: content/browser/presentation/presentation_service_impl.cc

Issue 2943033003: [PresentationSevice] Use PresentationConnection to send messages from (Closed)
Patch Set: LOG -> DLOG Created 3 years, 6 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: content/browser/presentation/presentation_service_impl.cc
diff --git a/content/browser/presentation/presentation_service_impl.cc b/content/browser/presentation/presentation_service_impl.cc
index f09402da93cd25866d8454e9d01ecaa915563202..b1d84ed720fca4a441be433eaffd04523f029e6d 100644
--- a/content/browser/presentation/presentation_service_impl.cc
+++ b/content/browser/presentation/presentation_service_impl.cc
@@ -356,18 +356,6 @@ PresentationServiceImpl::GetPresentationServiceDelegate() {
: static_cast<PresentationServiceDelegate*>(controller_delegate_);
}
-void PresentationServiceImpl::ListenForConnectionMessages(
- const PresentationInfo& presentation_info) {
- DVLOG(2) << "ListenForConnectionMessages";
- if (!controller_delegate_)
- return;
-
- controller_delegate_->ListenForConnectionMessages(
- render_process_id_, render_frame_id_, presentation_info,
- base::Bind(&PresentationServiceImpl::OnConnectionMessages,
- weak_factory_.GetWeakPtr(), presentation_info));
-}
-
void PresentationServiceImpl::SetPresentationConnection(
const PresentationInfo& presentation_info,
blink::mojom::PresentationConnectionPtr controller_connection_ptr,
@@ -383,16 +371,6 @@ void PresentationServiceImpl::SetPresentationConnection(
std::move(receiver_connection_request));
}
-void PresentationServiceImpl::OnConnectionMessages(
- const PresentationInfo& presentation_info,
- std::vector<PresentationConnectionMessage> messages) {
- DCHECK(client_);
-
- DVLOG(2) << "OnConnectionMessages [id]: "
- << presentation_info.presentation_id;
- client_->OnConnectionMessagesReceived(presentation_info, std::move(messages));
-}
-
void PresentationServiceImpl::OnReceiverConnectionAvailable(
const content::PresentationInfo& presentation_info,
PresentationConnectionPtr controller_connection_ptr,

Powered by Google App Engine
This is Rietveld 408576698