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

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

Issue 390983003: Remove remoting/jingle_glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/libjingle_transport_factory.cc ('k') | remoting/protocol/network_settings.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_JINGLE_GLUE_NETWORK_SETTINGS_H_ 5 #ifndef REMOTING_PROTOCOL_NETWORK_SETTINGS_H_
6 #define REMOTING_JINGLE_GLUE_NETWORK_SETTINGS_H_ 6 #define REMOTING_PROTOCOL_NETWORK_SETTINGS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 namespace protocol {
14 15
15 struct NetworkSettings { 16 struct NetworkSettings {
16 17
17 // When hosts are configured with NAT traversal disabled they will 18 // When hosts are configured with NAT traversal disabled they will
18 // typically also limit their P2P ports to this range, so that 19 // typically also limit their P2P ports to this range, so that
19 // sessions may be blocked or un-blocked via firewall rules. 20 // sessions may be blocked or un-blocked via firewall rules.
20 static const int kDefaultMinPort = 12400; 21 static const int kDefaultMinPort = 12400;
21 static const int kDefaultMaxPort = 12409; 22 static const int kDefaultMaxPort = 12409;
22 23
23 enum Flags { 24 enum Flags {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 int* out_max_port); 63 int* out_max_port);
63 64
64 uint32 flags; 65 uint32 flags;
65 66
66 // |min_port| and |max_port| specify range (inclusive) of ports used by 67 // |min_port| and |max_port| specify range (inclusive) of ports used by
67 // P2P sessions. Any port can be used when both values are set to 0. 68 // P2P sessions. Any port can be used when both values are set to 0.
68 int min_port; 69 int min_port;
69 int max_port; 70 int max_port;
70 }; 71 };
71 72
73 } // namespace protocol
72 } // namespace remoting 74 } // namespace remoting
73 75
74 #endif // REMOTING_HOST_NETWORK_SETTINGS_H_ 76 #endif // REMOTING_HOST_NETWORK_SETTINGS_H_
OLDNEW
« no previous file with comments | « remoting/protocol/libjingle_transport_factory.cc ('k') | remoting/protocol/network_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698