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

Side by Side Diff: chrome/browser/media/router/receiver_presentation_service_delegate_impl.cc

Issue 2962623002: [Media Router] Clean up OffscreenPresentationManager params. (Closed)
Patch Set: Addressed Bin's comments Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698