OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/presentation/presentation_service_impl.h" | 5 #include "content/browser/presentation/presentation_service_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <utility> | 10 #include <utility> |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 client_->OnSessionMessagesReceived( | 516 client_->OnSessionMessagesReceived( |
517 blink::mojom::PresentationSessionInfo::From(session), | 517 blink::mojom::PresentationSessionInfo::From(session), |
518 std::move(mojo_messages)); | 518 std::move(mojo_messages)); |
519 } | 519 } |
520 | 520 |
521 void PresentationServiceImpl::OnReceiverConnectionAvailable( | 521 void PresentationServiceImpl::OnReceiverConnectionAvailable( |
522 const content::PresentationSessionInfo& session_info, | 522 const content::PresentationSessionInfo& session_info, |
523 PresentationConnectionPtr&& controller) { | 523 PresentationConnectionPtr&& controller) { |
524 DVLOG(2) << "PresentationServiceImpl::OnReceiverConnectionAvailable"; | 524 DVLOG(2) << "PresentationServiceImpl::OnReceiverConnectionAvailable"; |
525 | 525 |
526 // client_->OnReceiverConnectionAvailable( | 526 client_->OnReceiverConnectionAvailable( |
527 // blink::mojom::PresentationSessionInfo::From(session_info), | 527 blink::mojom::PresentationSessionInfo::From(session_info), |
528 // std::move(controller)); | 528 std::move(controller)); |
529 } | 529 } |
530 | 530 |
531 void PresentationServiceImpl::DidNavigateAnyFrame( | 531 void PresentationServiceImpl::DidNavigateAnyFrame( |
532 content::RenderFrameHost* render_frame_host, | 532 content::RenderFrameHost* render_frame_host, |
533 const content::LoadCommittedDetails& details, | 533 const content::LoadCommittedDetails& details, |
534 const content::FrameNavigateParams& params) { | 534 const content::FrameNavigateParams& params) { |
535 DVLOG(2) << "PresentationServiceImpl::DidNavigateAnyFrame"; | 535 DVLOG(2) << "PresentationServiceImpl::DidNavigateAnyFrame"; |
536 if (!FrameMatches(render_frame_host)) | 536 if (!FrameMatches(render_frame_host)) |
537 return; | 537 return; |
538 | 538 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 | 657 |
658 void PresentationServiceImpl::NewSessionCallbackWrapper::Run( | 658 void PresentationServiceImpl::NewSessionCallbackWrapper::Run( |
659 blink::mojom::PresentationSessionInfoPtr session, | 659 blink::mojom::PresentationSessionInfoPtr session, |
660 blink::mojom::PresentationErrorPtr error) { | 660 blink::mojom::PresentationErrorPtr error) { |
661 DCHECK(!callback_.is_null()); | 661 DCHECK(!callback_.is_null()); |
662 callback_.Run(std::move(session), std::move(error)); | 662 callback_.Run(std::move(session), std::move(error)); |
663 callback_.Reset(); | 663 callback_.Reset(); |
664 } | 664 } |
665 | 665 |
666 } // namespace content | 666 } // namespace content |
OLD | NEW |