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

Side by Side Diff: content/renderer/pepper/pepper_media_stream_video_track_host.cc

Issue 1873293002: Report if video capturing meets output protection requirement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Rebased. Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/renderer/pepper/pepper_media_stream_video_track_host.h" 5 #include "content/renderer/pepper/pepper_media_stream_video_track_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 438
439 void PepperMediaStreamVideoTrackHost::StopSourceImpl() { 439 void PepperMediaStreamVideoTrackHost::StopSourceImpl() {
440 output_started_ = false; 440 output_started_ = false;
441 frame_deliverer_ = NULL; 441 frame_deliverer_ = NULL;
442 } 442 }
443 443
444 void PepperMediaStreamVideoTrackHost::DidConnectPendingHostToResource() { 444 void PepperMediaStreamVideoTrackHost::DidConnectPendingHostToResource() {
445 if (!MediaStreamVideoSink::connected_track().isNull()) 445 if (!MediaStreamVideoSink::connected_track().isNull())
446 return; 446 return;
447 MediaStreamVideoSink::ConnectToTrack( 447 MediaStreamVideoSink::ConnectToTrack(
448 track_, 448 track_, media::BindToCurrentLoop(
449 media::BindToCurrentLoop( 449 base::Bind(&PepperMediaStreamVideoTrackHost::OnVideoFrame,
450 base::Bind( 450 weak_factory_.GetWeakPtr())),
451 &PepperMediaStreamVideoTrackHost::OnVideoFrame, 451 false);
452 weak_factory_.GetWeakPtr())));
453 } 452 }
454 453
455 int32_t PepperMediaStreamVideoTrackHost::OnResourceMessageReceived( 454 int32_t PepperMediaStreamVideoTrackHost::OnResourceMessageReceived(
456 const IPC::Message& msg, 455 const IPC::Message& msg,
457 HostMessageContext* context) { 456 HostMessageContext* context) {
458 PPAPI_BEGIN_MESSAGE_MAP(PepperMediaStreamVideoTrackHost, msg) 457 PPAPI_BEGIN_MESSAGE_MAP(PepperMediaStreamVideoTrackHost, msg)
459 PPAPI_DISPATCH_HOST_RESOURCE_CALL( 458 PPAPI_DISPATCH_HOST_RESOURCE_CALL(
460 PpapiHostMsg_MediaStreamVideoTrack_Configure, OnHostMsgConfigure) 459 PpapiHostMsg_MediaStreamVideoTrack_Configure, OnHostMsgConfigure)
461 PPAPI_END_MESSAGE_MAP() 460 PPAPI_END_MESSAGE_MAP()
462 return PepperMediaStreamTrackHostBase::OnResourceMessageReceived(msg, 461 return PepperMediaStreamTrackHostBase::OnResourceMessageReceived(msg,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 } 524 }
526 525
527 void PepperMediaStreamVideoTrackHost::OnTrackStarted( 526 void PepperMediaStreamVideoTrackHost::OnTrackStarted(
528 MediaStreamSource* source, 527 MediaStreamSource* source,
529 MediaStreamRequestResult result, 528 MediaStreamRequestResult result,
530 const blink::WebString& result_name) { 529 const blink::WebString& result_name) {
531 DVLOG(3) << "OnTrackStarted result: " << result; 530 DVLOG(3) << "OnTrackStarted result: " << result;
532 } 531 }
533 532
534 } // namespace content 533 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698