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

Side by Side Diff: chrome/renderer/media/cast_rtp_stream.cc

Issue 1731483003: chrome: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/media/cast_rtp_stream.h" 5 #include "chrome/renderer/media/cast_rtp_stream.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <algorithm> 8 #include <algorithm>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 min_latency_ms(0), 506 min_latency_ms(0),
507 ssrc(0), 507 ssrc(0),
508 feedback_ssrc(0), 508 feedback_ssrc(0),
509 clock_rate(0), 509 clock_rate(0),
510 max_bitrate(0), 510 max_bitrate(0),
511 min_bitrate(0), 511 min_bitrate(0),
512 channels(0), 512 channels(0),
513 max_frame_rate(0.0) { 513 max_frame_rate(0.0) {
514 } 514 }
515 515
516 CastRtpPayloadParams::CastRtpPayloadParams(const CastRtpPayloadParams& other) =
517 default;
518
516 CastRtpPayloadParams::~CastRtpPayloadParams() {} 519 CastRtpPayloadParams::~CastRtpPayloadParams() {}
517 520
518 CastRtpParams::CastRtpParams() {} 521 CastRtpParams::CastRtpParams() {}
519 522
523 CastRtpParams::CastRtpParams(const CastRtpParams& other) = default;
524
520 CastRtpParams::~CastRtpParams() {} 525 CastRtpParams::~CastRtpParams() {}
521 526
522 CastRtpStream::CastRtpStream(const blink::WebMediaStreamTrack& track, 527 CastRtpStream::CastRtpStream(const blink::WebMediaStreamTrack& track,
523 const scoped_refptr<CastSession>& session) 528 const scoped_refptr<CastSession>& session)
524 : track_(track), cast_session_(session), weak_factory_(this) {} 529 : track_(track), cast_session_(session), weak_factory_(this) {}
525 530
526 CastRtpStream::~CastRtpStream() { 531 CastRtpStream::~CastRtpStream() {
527 Stop(); 532 Stop();
528 } 533 }
529 534
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 DCHECK(content::RenderThread::Get()); 632 DCHECK(content::RenderThread::Get());
628 DVLOG(1) << "CastRtpStream::DidEncounterError(" << message << ") = " 633 DVLOG(1) << "CastRtpStream::DidEncounterError(" << message << ") = "
629 << (IsAudio() ? "audio" : "video"); 634 << (IsAudio() ? "audio" : "video");
630 // Save the WeakPtr first because the error callback might delete this object. 635 // Save the WeakPtr first because the error callback might delete this object.
631 base::WeakPtr<CastRtpStream> ptr = weak_factory_.GetWeakPtr(); 636 base::WeakPtr<CastRtpStream> ptr = weak_factory_.GetWeakPtr();
632 error_callback_.Run(message); 637 error_callback_.Run(message);
633 base::ThreadTaskRunnerHandle::Get()->PostTask( 638 base::ThreadTaskRunnerHandle::Get()->PostTask(
634 FROM_HERE, 639 FROM_HERE,
635 base::Bind(&CastRtpStream::Stop, ptr)); 640 base::Bind(&CastRtpStream::Stop, ptr));
636 } 641 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698