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

Side by Side Diff: content/renderer/p2p/port_allocator.cc

Issue 1307943011: Simple variable renaming: remove transport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « content/renderer/p2p/port_allocator.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/p2p/port_allocator.h" 5 #include "content/renderer/p2p/port_allocator.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "content/public/common/content_switches.h" 8 #include "content/public/common/content_switches.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 17 matching lines...) Expand all
28 const Config& config, 28 const Config& config,
29 const GURL& origin) 29 const GURL& origin)
30 : cricket::BasicPortAllocator(network_manager, socket_factory), 30 : cricket::BasicPortAllocator(network_manager, socket_factory),
31 socket_dispatcher_(socket_dispatcher), 31 socket_dispatcher_(socket_dispatcher),
32 config_(config), 32 config_(config),
33 origin_(origin) 33 origin_(origin)
34 { 34 {
35 uint32 flags = 0; 35 uint32 flags = 0;
36 if (!config_.enable_multiple_routes) 36 if (!config_.enable_multiple_routes)
37 flags |= cricket::PORTALLOCATOR_DISABLE_ADAPTER_ENUMERATION; 37 flags |= cricket::PORTALLOCATOR_DISABLE_ADAPTER_ENUMERATION;
38 if (!config_.enable_nonproxied_udp_transport) { 38 if (!config_.enable_nonproxied_udp) {
39 flags |= cricket::PORTALLOCATOR_DISABLE_UDP | 39 flags |= cricket::PORTALLOCATOR_DISABLE_UDP |
40 cricket::PORTALLOCATOR_DISABLE_STUN | 40 cricket::PORTALLOCATOR_DISABLE_STUN |
41 cricket::PORTALLOCATOR_DISABLE_UDP_RELAY; 41 cricket::PORTALLOCATOR_DISABLE_UDP_RELAY;
42 } 42 }
43 set_flags(flags); 43 set_flags(flags);
44 set_allow_tcp_listen(false); 44 set_allow_tcp_listen(false);
45 const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); 45 const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess();
46 bool enable_webrtc_stun_origin = 46 bool enable_webrtc_stun_origin =
47 cmd_line->HasSwitch(switches::kEnableWebRtcStunOrigin); 47 cmd_line->HasSwitch(switches::kEnableWebRtcStunOrigin);
48 if (enable_webrtc_stun_origin) { 48 if (enable_webrtc_stun_origin) {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 config.relays[i].port), 104 config.relays[i].port),
105 protocol, 105 protocol,
106 config.relays[i].secure)); 106 config.relays[i].secure));
107 relay_server.credentials = credentials; 107 relay_server.credentials = credentials;
108 port_config->AddRelay(relay_server); 108 port_config->AddRelay(relay_server);
109 } 109 }
110 ConfigReady(port_config); 110 ConfigReady(port_config);
111 } 111 }
112 112
113 } // namespace content 113 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/p2p/port_allocator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698