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

Unified Diff: content/public/common/socket_permission_request.h

Issue 655063002: Use uint16 for port numbers more pervasively. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert bad change Created 6 years, 1 month 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: content/public/common/socket_permission_request.h
diff --git a/content/public/common/socket_permission_request.h b/content/public/common/socket_permission_request.h
index b7b4389b9b4789f8c203b5bf51470d2ffc3c8f0a..3db53b3699a6c2ba183d88685f8bf92fd396168e 100644
--- a/content/public/common/socket_permission_request.h
+++ b/content/public/common/socket_permission_request.h
@@ -7,6 +7,8 @@
#include <string>
+#include "base/basictypes.h"
+
namespace content {
// This module provides helper types for checking socket permission.
@@ -27,7 +29,7 @@ struct SocketPermissionRequest {
SocketPermissionRequest(OperationType type,
const std::string& host,
- int port)
+ uint16 port)
: type(type),
host(host),
port(port) {
@@ -35,7 +37,7 @@ struct SocketPermissionRequest {
OperationType type;
std::string host;
- int port;
+ uint16 port;
};
} // namespace content
« no previous file with comments | « content/public/common/common_param_traits.cc ('k') | content/shell/browser/shell_devtools_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698