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

Unified Diff: remoting/protocol/network_settings.h

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/negotiating_host_authenticator.h ('k') | remoting/protocol/pairing_authenticator_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/network_settings.h
diff --git a/remoting/protocol/network_settings.h b/remoting/protocol/network_settings.h
index 83d750761ffc4ed96aef132244833024e8761d7a..86485284d4710c8d7901585c42d12ed6f60b7d49 100644
--- a/remoting/protocol/network_settings.h
+++ b/remoting/protocol/network_settings.h
@@ -5,9 +5,10 @@
#ifndef REMOTING_PROTOCOL_NETWORK_SETTINGS_H_
#define REMOTING_PROTOCOL_NETWORK_SETTINGS_H_
+#include <stdint.h>
+
#include <string>
-#include "base/basictypes.h"
#include "base/logging.h"
#include "remoting/protocol/port_range.h"
@@ -19,8 +20,8 @@ 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 uint16 kDefaultMinPort = 12400;
- static const uint16 kDefaultMaxPort = 12409;
+ static const uint16_t kDefaultMinPort = 12400;
+ static const uint16_t kDefaultMaxPort = 12409;
enum Flags {
// Don't use STUN or relay servers. Accept incoming P2P connection
@@ -48,9 +49,9 @@ struct NetworkSettings {
(flags & NAT_TRAVERSAL_OUTGOING));
}
- explicit NetworkSettings(uint32 flags) : flags(flags) {}
+ explicit NetworkSettings(uint32_t flags) : flags(flags) {}
- uint32 flags;
+ uint32_t flags;
// Range of ports used by P2P sessions.
PortRange port_range;
« no previous file with comments | « remoting/protocol/negotiating_host_authenticator.h ('k') | remoting/protocol/pairing_authenticator_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698