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

Side by Side Diff: chrome/renderer/media/cast_transport_sender_ipc.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 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 "chrome/renderer/media/cast_transport_sender_ipc.h" 5 #include "chrome/renderer/media/cast_transport_sender_ipc.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/id_map.h" 10 #include "base/id_map.h"
11 #include "chrome/common/cast_messages.h" 11 #include "chrome/common/cast_messages.h"
12 #include "chrome/renderer/media/cast_ipc_dispatcher.h" 12 #include "chrome/renderer/media/cast_ipc_dispatcher.h"
13 #include "ipc/ipc_channel_proxy.h" 13 #include "ipc/ipc_channel_proxy.h"
14 #include "media/cast/cast_sender.h" 14 #include "media/cast/cast_sender.h"
15 15
16 CastTransportSenderIPC::ClientCallbacks::ClientCallbacks() {} 16 CastTransportSenderIPC::ClientCallbacks::ClientCallbacks() {}
17 CastTransportSenderIPC::ClientCallbacks::ClientCallbacks(
18 const ClientCallbacks& other) = default;
17 CastTransportSenderIPC::ClientCallbacks::~ClientCallbacks() {} 19 CastTransportSenderIPC::ClientCallbacks::~ClientCallbacks() {}
18 20
19 CastTransportSenderIPC::CastTransportSenderIPC( 21 CastTransportSenderIPC::CastTransportSenderIPC(
20 const net::IPEndPoint& local_end_point, 22 const net::IPEndPoint& local_end_point,
21 const net::IPEndPoint& remote_end_point, 23 const net::IPEndPoint& remote_end_point,
22 scoped_ptr<base::DictionaryValue> options, 24 scoped_ptr<base::DictionaryValue> options,
23 const media::cast::PacketReceiverCallback& packet_callback, 25 const media::cast::PacketReceiverCallback& packet_callback,
24 const media::cast::CastTransportStatusCallback& status_cb, 26 const media::cast::CastTransportStatusCallback& status_cb,
25 const media::cast::BulkRawEventsCallback& raw_events_cb) 27 const media::cast::BulkRawEventsCallback& raw_events_cb)
26 : packet_callback_(packet_callback) , 28 : packet_callback_(packet_callback) ,
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 } 196 }
195 } 197 }
196 198
197 void CastTransportSenderIPC::Send(IPC::Message* message) { 199 void CastTransportSenderIPC::Send(IPC::Message* message) {
198 if (CastIPCDispatcher::Get()) { 200 if (CastIPCDispatcher::Get()) {
199 CastIPCDispatcher::Get()->Send(message); 201 CastIPCDispatcher::Get()->Send(message);
200 } else { 202 } else {
201 delete message; 203 delete message;
202 } 204 }
203 } 205 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698