OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "chrome/browser/media/router/receiver_presentation_service_delegate_imp
l.h" | 5 #include "chrome/browser/media/router/receiver_presentation_service_delegate_imp
l.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "chrome/browser/media/router/offscreen_presentation_manager.h" | 8 #include "chrome/browser/media/router/offscreen_presentation_manager.h" |
9 #include "chrome/browser/media/router/offscreen_presentation_manager_factory.h" | 9 #include "chrome/browser/media/router/offscreen_presentation_manager_factory.h" |
10 | 10 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 DCHECK(web_contents_); | 62 DCHECK(web_contents_); |
63 DCHECK(!presentation_id.empty()); | 63 DCHECK(!presentation_id.empty()); |
64 DCHECK(offscreen_presentation_manager_); | 64 DCHECK(offscreen_presentation_manager_); |
65 } | 65 } |
66 | 66 |
67 void ReceiverPresentationServiceDelegateImpl:: | 67 void ReceiverPresentationServiceDelegateImpl:: |
68 RegisterReceiverConnectionAvailableCallback( | 68 RegisterReceiverConnectionAvailableCallback( |
69 const content::ReceiverConnectionAvailableCallback& | 69 const content::ReceiverConnectionAvailableCallback& |
70 receiver_available_callback) { | 70 receiver_available_callback) { |
71 offscreen_presentation_manager_->OnOffscreenPresentationReceiverCreated( | 71 offscreen_presentation_manager_->OnOffscreenPresentationReceiverCreated( |
72 presentation_id_, web_contents_->GetLastCommittedURL(), | 72 content::PresentationInfo(web_contents_->GetLastCommittedURL(), |
| 73 presentation_id_), |
73 receiver_available_callback); | 74 receiver_available_callback); |
74 } | 75 } |
75 | 76 |
76 } // namespace media_router | 77 } // namespace media_router |
OLD | NEW |