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

Side by Side Diff: extensions/renderer/api/display_source/wifi_display/wifi_display_media_manager.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 "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/common/service_registry.h" 10 #include "content/public/common/service_registry.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 content::ServiceRegistry* service_registry, 89 content::ServiceRegistry* service_registry,
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 service_registry_(service_registry), 93 service_registry_(service_registry),
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()->GetIOMessageLoopProxy()), 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),
100 weak_factory_(this) { 100 weak_factory_(this) {
101 DCHECK(!video_track.isNull() || !audio_track.isNull()); 101 DCHECK(!video_track.isNull() || !audio_track.isNull());
102 DCHECK(service_registry_); 102 DCHECK(service_registry_);
103 DCHECK(!error_callback_.is_null()); 103 DCHECK(!error_callback_.is_null());
104 } 104 }
105 105
106 WiFiDisplayMediaManager::~WiFiDisplayMediaManager() { 106 WiFiDisplayMediaManager::~WiFiDisplayMediaManager() {
107 Teardown(); 107 Teardown();
108 } 108 }
109 109
110 void WiFiDisplayMediaManager::Play() { 110 void WiFiDisplayMediaManager::Play() {
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 service_registry_->ConnectToRemoteService(std::move(request)); 491 service_registry_->ConnectToRemoteService(std::move(request));
492 } 492 }
493 493
494 } // namespace extensions 494 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/updater/safe_manifest_parser.cc ('k') | extensions/shell/browser/shell_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698