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

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

Issue 281803003: Add PPAPI_BEGIN_MESSAGE_MAP and PPAPI_END_MESSAGE_MAP to be used when dispatching IPCs using PPAPI_… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 "base/base64.h" 7 #include "base/base64.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/rand_util.h" 9 #include "base/rand_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 &PepperMediaStreamVideoTrackHost::OnVideoFrame, 459 &PepperMediaStreamVideoTrackHost::OnVideoFrame,
460 weak_factory_.GetWeakPtr())), 460 weak_factory_.GetWeakPtr())),
461 track_); 461 track_);
462 connected_ = true; 462 connected_ = true;
463 } 463 }
464 } 464 }
465 465
466 int32_t PepperMediaStreamVideoTrackHost::OnResourceMessageReceived( 466 int32_t PepperMediaStreamVideoTrackHost::OnResourceMessageReceived(
467 const IPC::Message& msg, 467 const IPC::Message& msg,
468 HostMessageContext* context) { 468 HostMessageContext* context) {
469 IPC_BEGIN_MESSAGE_MAP(PepperMediaStreamVideoTrackHost, msg) 469 PPAPI_BEGIN_MESSAGE_MAP(PepperMediaStreamVideoTrackHost, msg)
470 PPAPI_DISPATCH_HOST_RESOURCE_CALL( 470 PPAPI_DISPATCH_HOST_RESOURCE_CALL(
471 PpapiHostMsg_MediaStreamVideoTrack_Configure, OnHostMsgConfigure) 471 PpapiHostMsg_MediaStreamVideoTrack_Configure, OnHostMsgConfigure)
472 IPC_END_MESSAGE_MAP() 472 PPAPI_END_MESSAGE_MAP()
473 return PepperMediaStreamTrackHostBase::OnResourceMessageReceived(msg, 473 return PepperMediaStreamTrackHostBase::OnResourceMessageReceived(msg,
474 context); 474 context);
475 } 475 }
476 476
477 int32_t PepperMediaStreamVideoTrackHost::OnHostMsgConfigure( 477 int32_t PepperMediaStreamVideoTrackHost::OnHostMsgConfigure(
478 HostMessageContext* context, 478 HostMessageContext* context,
479 const MediaStreamVideoTrackShared::Attributes& attributes) { 479 const MediaStreamVideoTrackShared::Attributes& attributes) {
480 CHECK(MediaStreamVideoTrackShared::VerifyAttributes(attributes)); 480 CHECK(MediaStreamVideoTrackShared::VerifyAttributes(attributes));
481 481
482 bool changed = false; 482 bool changed = false;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 base::Unretained(this)), 533 base::Unretained(this)),
534 enabled); 534 enabled);
535 } 535 }
536 536
537 void PepperMediaStreamVideoTrackHost::OnTrackStarted( 537 void PepperMediaStreamVideoTrackHost::OnTrackStarted(
538 MediaStreamSource* source, bool success) { 538 MediaStreamSource* source, bool success) {
539 DVLOG(3) << "OnTrackStarted result: " << success; 539 DVLOG(3) << "OnTrackStarted result: " << success;
540 } 540 }
541 541
542 } // namespace content 542 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698