summaryrefslogtreecommitdiffstats
path: root/remoting/host/network_settings.h
diff options
context:
space:
mode:
authorsolb@chromium.org <solb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-21 22:42:56 +0000
committersolb@chromium.org <solb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-21 22:42:56 +0000
commit83ed59be229f3ad5236ab913a7a0199648b60441 (patch)
treeee7512b8824f675ca36038f08abf5d458bc6086a /remoting/host/network_settings.h
parent086651227011828b8709473ef6e78fb55a8a57fb (diff)
downloadchromium_src-83ed59be229f3ad5236ab913a7a0199648b60441.zip
chromium_src-83ed59be229f3ad5236ab913a7a0199648b60441.tar.gz
chromium_src-83ed59be229f3ad5236ab913a7a0199648b60441.tar.bz2
Add static Create method to LibjingleTransportFactory
This allows the class's easy use in future client implementations. Review URL: https://chromiumcodereview.appspot.com/17101034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207942 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/network_settings.h')
-rw-r--r--remoting/host/network_settings.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/remoting/host/network_settings.h b/remoting/host/network_settings.h
deleted file mode 100644
index 3c1ed97..0000000
--- a/remoting/host/network_settings.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef REMOTING_HOST_NETWORK_SETTINGS_H_
-#define REMOTING_HOST_NETWORK_SETTINGS_H_
-
-namespace remoting {
-
-struct NetworkSettings {
-
- // When hosts are configured with NAT traversal disabled they will
- // typically also limit their P2P ports to this range, so that
- // sessions may be blocked or un-blocked via firewall rules.
- static const int kDefaultMinPort = 12400;
- static const int kDefaultMaxPort = 12409;
-
- enum NatTraversalMode {
- // Active NAT traversal using STUN and relay servers.
- NAT_TRAVERSAL_ENABLED,
-
- // Don't use STUN or relay servers. Accept incoming P2P connection
- // attempts, but don't initiate any. This ensures that the peer is
- // on the same network. Note that connection will always fail if
- // both ends use this mode.
- NAT_TRAVERSAL_DISABLED,
-
- // Don't use STUN or relay servers but make outgoing connections.
- NAT_TRAVERSAL_OUTGOING,
- };
-
- NetworkSettings()
- : nat_traversal_mode(NAT_TRAVERSAL_DISABLED),
- min_port(0),
- max_port(0) {
- }
-
- explicit NetworkSettings(NatTraversalMode nat_traversal_mode)
- : nat_traversal_mode(nat_traversal_mode),
- min_port(0),
- max_port(0) {
- }
-
- NatTraversalMode nat_traversal_mode;
-
- // |min_port| and |max_port| specify range (inclusive) of ports used by
- // P2P sessions. Any port can be used when both values are set to 0.
- int min_port;
- int max_port;
-};
-
-} // namespace remoting
-
-#endif // REMOTING_HOST_NETWORK_SETTINGS_H_