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

Side by Side Diff: remoting/protocol/network_settings.h

Issue 17101034: Add static Create method to LibjingleTransportFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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 (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 #ifndef REMOTING_HOST_NETWORK_SETTINGS_H_ 5 #ifndef REMOTING_PROTOCOL_NETWORK_SETTINGS_H_
6 #define REMOTING_HOST_NETWORK_SETTINGS_H_ 6 #define REMOTING_PROTOCOL_NETWORK_SETTINGS_H_
7 7
8 namespace remoting { 8 namespace remoting {
9 9
10 namespace protocol {
11
10 struct NetworkSettings { 12 struct NetworkSettings {
11 13
12 // When hosts are configured with NAT traversal disabled they will 14 // When hosts are configured with NAT traversal disabled they will
13 // typically also limit their P2P ports to this range, so that 15 // typically also limit their P2P ports to this range, so that
14 // sessions may be blocked or un-blocked via firewall rules. 16 // sessions may be blocked or un-blocked via firewall rules.
15 static const int kDefaultMinPort = 12400; 17 static const int kDefaultMinPort = 12400;
16 static const int kDefaultMaxPort = 12409; 18 static const int kDefaultMaxPort = 12409;
17 19
18 enum NatTraversalMode { 20 enum NatTraversalMode {
19 // Active NAT traversal using STUN and relay servers. 21 // Active NAT traversal using STUN and relay servers.
(...skipping 22 matching lines...) Expand all
42 } 44 }
43 45
44 NatTraversalMode nat_traversal_mode; 46 NatTraversalMode nat_traversal_mode;
45 47
46 // |min_port| and |max_port| specify range (inclusive) of ports used by 48 // |min_port| and |max_port| specify range (inclusive) of ports used by
47 // P2P sessions. Any port can be used when both values are set to 0. 49 // P2P sessions. Any port can be used when both values are set to 0.
48 int min_port; 50 int min_port;
49 int max_port; 51 int max_port;
50 }; 52 };
51 53
54 } // namespace protocol
55
52 } // namespace remoting 56 } // namespace remoting
53 57
54 #endif // REMOTING_HOST_NETWORK_SETTINGS_H_ 58 #endif // REMOTING_HOST_NETWORK_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698