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

Unified Diff: extensions/browser/api/socket/socket_api.h

Issue 717263003: Use uint16 for port numbers, extensions/ edition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self-review 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: extensions/browser/api/socket/socket_api.h
diff --git a/extensions/browser/api/socket/socket_api.h b/extensions/browser/api/socket/socket_api.h
index 8ceee16fe18514ded67d561a65ce4f785e28c7e8..12f4557bfb0fea1d9b059389b023d01a3fb15358 100644
--- a/extensions/browser/api/socket/socket_api.h
+++ b/extensions/browser/api/socket/socket_api.h
@@ -203,7 +203,7 @@ class SocketConnectFunction : public SocketExtensionWithDnsLookupFunction {
int socket_id_;
std::string hostname_;
- int port_;
+ uint16 port_;
};
class SocketDisconnectFunction : public SocketAsyncApiFunction {
@@ -235,7 +235,7 @@ class SocketBindFunction : public SocketAsyncApiFunction {
private:
int socket_id_;
std::string address_;
- int port_;
+ uint16 port_;
};
class SocketListenFunction : public SocketAsyncApiFunction {
@@ -327,7 +327,7 @@ class SocketRecvFromFunction : public SocketAsyncApiFunction {
void OnCompleted(int result,
scoped_refptr<net::IOBuffer> io_buffer,
const std::string& address,
- int port);
+ uint16 port);
private:
scoped_ptr<core_api::socket::RecvFrom::Params> params_;
@@ -357,7 +357,7 @@ class SocketSendToFunction : public SocketExtensionWithDnsLookupFunction {
scoped_refptr<net::IOBuffer> io_buffer_;
size_t io_buffer_size_;
std::string hostname_;
- int port_;
+ uint16 port_;
};
class SocketSetKeepAliveFunction : public SocketAsyncApiFunction {

Powered by Google App Engine
This is Rietveld 408576698