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

Unified Diff: remoting/client/plugin/pepper_packet_socket_factory.cc

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
Index: remoting/client/plugin/pepper_packet_socket_factory.cc
diff --git a/remoting/client/plugin/pepper_packet_socket_factory.cc b/remoting/client/plugin/pepper_packet_socket_factory.cc
index b8a1249200d6fee12ff06d48644a75e07a63f452..9735d013ec8da66a08a9a2e6db081a7b5a2ae487 100644
--- a/remoting/client/plugin/pepper_packet_socket_factory.cc
+++ b/remoting/client/plugin/pepper_packet_socket_factory.cc
@@ -4,8 +4,11 @@
#include "remoting/client/plugin/pepper_packet_socket_factory.h"
+#include <stddef.h>
+
#include "base/bind.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "ppapi/cpp/net_address.h"
@@ -91,8 +94,8 @@ class UdpPacketSocket : public rtc::AsyncPacketSocket {
// |min_port| and |max_port| are set to zero if the port number
// should be assigned by the OS.
bool Init(const rtc::SocketAddress& local_address,
- uint16 min_port,
- uint16 max_port);
+ uint16_t min_port,
+ uint16_t max_port);
// rtc::AsyncPacketSocket interface.
rtc::SocketAddress GetLocalAddress() const override;
@@ -183,8 +186,8 @@ UdpPacketSocket::~UdpPacketSocket() {
}
bool UdpPacketSocket::Init(const rtc::SocketAddress& local_address,
- uint16 min_port,
- uint16 max_port) {
+ uint16_t min_port,
+ uint16_t max_port) {
if (socket_.is_null()) {
return false;
}
@@ -408,9 +411,9 @@ PepperPacketSocketFactory::~PepperPacketSocketFactory() {
}
rtc::AsyncPacketSocket* PepperPacketSocketFactory::CreateUdpSocket(
- const rtc::SocketAddress& local_address,
- uint16 min_port,
- uint16 max_port) {
+ const rtc::SocketAddress& local_address,
+ uint16_t min_port,
+ uint16_t max_port) {
scoped_ptr<UdpPacketSocket> result(new UdpPacketSocket(pp_instance_));
if (!result->Init(local_address, min_port, max_port))
return nullptr;
@@ -419,8 +422,8 @@ rtc::AsyncPacketSocket* PepperPacketSocketFactory::CreateUdpSocket(
rtc::AsyncPacketSocket* PepperPacketSocketFactory::CreateServerTcpSocket(
const rtc::SocketAddress& local_address,
- uint16 min_port,
- uint16 max_port,
+ uint16_t min_port,
+ uint16_t max_port,
int opts) {
// We don't use TCP sockets for remoting connections.
NOTREACHED();
« no previous file with comments | « remoting/client/plugin/pepper_packet_socket_factory.h ('k') | remoting/client/plugin/pepper_port_allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698