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 "extensions/renderer/api/display_source/wifi_display/wifi_display_media
_manager.h" | 5 #include "extensions/renderer/api/display_source/wifi_display/wifi_display_media
_manager.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/rand_util.h" | 8 #include "base/rand_util.h" |
9 #include "base/task_runner_util.h" | 9 #include "base/task_runner_util.h" |
10 #include "content/public/renderer/media_stream_utils.h" | 10 #include "content/public/renderer/media_stream_utils.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 private: | 79 private: |
80 blink::WebMediaStreamTrack track_; | 80 blink::WebMediaStreamTrack track_; |
81 content::VideoCaptureDeliverFrameCB callback_; | 81 content::VideoCaptureDeliverFrameCB callback_; |
82 DISALLOW_COPY_AND_ASSIGN(WiFiDisplayVideoSink); | 82 DISALLOW_COPY_AND_ASSIGN(WiFiDisplayVideoSink); |
83 }; | 83 }; |
84 | 84 |
85 WiFiDisplayMediaManager::WiFiDisplayMediaManager( | 85 WiFiDisplayMediaManager::WiFiDisplayMediaManager( |
86 const blink::WebMediaStreamTrack& video_track, | 86 const blink::WebMediaStreamTrack& video_track, |
87 const blink::WebMediaStreamTrack& audio_track, | 87 const blink::WebMediaStreamTrack& audio_track, |
88 const std::string& sink_ip_address, | 88 const std::string& sink_ip_address, |
89 shell::InterfaceProvider* interface_provider, | 89 service_manager::InterfaceProvider* interface_provider, |
90 const ErrorCallback& error_callback) | 90 const ErrorCallback& error_callback) |
91 : video_track_(video_track), | 91 : video_track_(video_track), |
92 audio_track_(audio_track), | 92 audio_track_(audio_track), |
93 interface_provider_(interface_provider), | 93 interface_provider_(interface_provider), |
94 sink_ip_address_(sink_ip_address), | 94 sink_ip_address_(sink_ip_address), |
95 player_(nullptr), | 95 player_(nullptr), |
96 io_task_runner_(content::RenderThread::Get()->GetIOTaskRunner()), | 96 io_task_runner_(content::RenderThread::Get()->GetIOTaskRunner()), |
97 error_callback_(error_callback), | 97 error_callback_(error_callback), |
98 is_playing_(false), | 98 is_playing_(false), |
99 is_initialized_(false), | 99 is_initialized_(false), |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 media::BindToCurrentLoop(on_completed)); | 485 media::BindToCurrentLoop(on_completed)); |
486 } | 486 } |
487 | 487 |
488 void WiFiDisplayMediaManager::ConnectToRemoteService( | 488 void WiFiDisplayMediaManager::ConnectToRemoteService( |
489 WiFiDisplayMediaServiceRequest request) { | 489 WiFiDisplayMediaServiceRequest request) { |
490 DCHECK(content::RenderThread::Get()); | 490 DCHECK(content::RenderThread::Get()); |
491 interface_provider_->GetInterface(std::move(request)); | 491 interface_provider_->GetInterface(std::move(request)); |
492 } | 492 } |
493 | 493 |
494 } // namespace extensions | 494 } // namespace extensions |
OLD | NEW |