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

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

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
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 | « extensions/browser/api/socket/socket.cc ('k') | extensions/browser/api/socket/socket_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9c26c258b49677d1f10369277c33e1e98c7a3415..cd5b32639033db4c475bd5011eea33426244b453 100644
--- a/extensions/browser/api/socket/socket_api.h
+++ b/extensions/browser/api/socket/socket_api.h
@@ -5,10 +5,15 @@
#ifndef EXTENSIONS_BROWSER_API_SOCKET_SOCKET_API_H_
#define EXTENSIONS_BROWSER_API_SOCKET_SOCKET_API_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <string>
#include "base/gtest_prod_util.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "build/build_config.h"
#include "extensions/browser/api/api_resource_manager.h"
#include "extensions/browser/api/async_api_function.h"
#include "extensions/browser/extension_function.h"
@@ -218,7 +223,7 @@ class SocketConnectFunction : public SocketExtensionWithDnsLookupFunction {
int socket_id_;
std::string hostname_;
- uint16 port_;
+ uint16_t port_;
};
class SocketDisconnectFunction : public SocketAsyncApiFunction {
@@ -250,7 +255,7 @@ class SocketBindFunction : public SocketAsyncApiFunction {
private:
int socket_id_;
std::string address_;
- uint16 port_;
+ uint16_t port_;
};
class SocketListenFunction : public SocketAsyncApiFunction {
@@ -342,7 +347,7 @@ class SocketRecvFromFunction : public SocketAsyncApiFunction {
void OnCompleted(int result,
scoped_refptr<net::IOBuffer> io_buffer,
const std::string& address,
- uint16 port);
+ uint16_t port);
private:
scoped_ptr<api::socket::RecvFrom::Params> params_;
@@ -372,7 +377,7 @@ class SocketSendToFunction : public SocketExtensionWithDnsLookupFunction {
scoped_refptr<net::IOBuffer> io_buffer_;
size_t io_buffer_size_;
std::string hostname_;
- uint16 port_;
+ uint16_t port_;
};
class SocketSetKeepAliveFunction : public SocketAsyncApiFunction {
« no previous file with comments | « extensions/browser/api/socket/socket.cc ('k') | extensions/browser/api/socket/socket_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698