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

Side by Side Diff: webrtc/base/virtualsocketserver.cc

Issue 1342543004: Consolidate constructormagic macros with Chromium version and remove Chromium override. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 years, 3 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 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 struct MessageAddress : public MessageData { 91 struct MessageAddress : public MessageData {
92 explicit MessageAddress(const SocketAddress& a) : addr(a) { } 92 explicit MessageAddress(const SocketAddress& a) : addr(a) { }
93 SocketAddress addr; 93 SocketAddress addr;
94 }; 94 };
95 95
96 VirtualSocket::VirtualSocket(VirtualSocketServer* server, 96 VirtualSocket::VirtualSocket(VirtualSocketServer* server,
97 int family, 97 int family,
98 int type, 98 int type,
99 bool async) 99 bool async)
100 : server_(server), 100 : server_(server),
101 family_(family),
102 type_(type), 101 type_(type),
103 async_(async), 102 async_(async),
104 state_(CS_CLOSED), 103 state_(CS_CLOSED),
105 error_(0), 104 error_(0),
106 listen_queue_(NULL), 105 listen_queue_(NULL),
107 write_enabled_(false), 106 write_enabled_(false),
108 network_size_(0), 107 network_size_(0),
109 recv_buffer_size_(0), 108 recv_buffer_size_(0),
110 bound_(false), 109 bound_(false),
111 was_any_(false) { 110 was_any_(false) {
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 void VirtualSocketServer::SetDefaultRoute(const IPAddress& from_addr) { 1117 void VirtualSocketServer::SetDefaultRoute(const IPAddress& from_addr) {
1119 DCHECK(!IPIsAny(from_addr)); 1118 DCHECK(!IPIsAny(from_addr));
1120 if (from_addr.family() == AF_INET) { 1119 if (from_addr.family() == AF_INET) {
1121 default_route_v4_ = from_addr; 1120 default_route_v4_ = from_addr;
1122 } else if (from_addr.family() == AF_INET6) { 1121 } else if (from_addr.family() == AF_INET6) {
1123 default_route_v6_ = from_addr; 1122 default_route_v6_ = from_addr;
1124 } 1123 }
1125 } 1124 }
1126 1125
1127 } // namespace rtc 1126 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/base/virtualsocketserver.h ('k') | webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698