Commit 4ad2a5cf authored by Miyoung Shin's avatar Miyoung Shin Committed by Commit Bot

Refactor: unsigned short -> uint16_t in third_party/blink/public/platform

- unsigned short -> uint16_t.
- No logic changes.
- Reference: https://google.github.io/styleguide/cppguide.html#Integer_Types

Bug: 929986
Change-Id: Idddb94ba48c84b22cbaea850ae2c6d394759d50e
Reviewed-on: https://chromium-review.googlesource.com/c/1490360Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Miyoung Shin <myid.shin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#635898}
parent d28dd4de
...@@ -273,8 +273,8 @@ class WebURLResponse { ...@@ -273,8 +273,8 @@ class WebURLResponse {
BLINK_PLATFORM_EXPORT void SetRemoteIPAddress(const WebString&); BLINK_PLATFORM_EXPORT void SetRemoteIPAddress(const WebString&);
// Remote port number of the socket which fetched this resource. // Remote port number of the socket which fetched this resource.
BLINK_PLATFORM_EXPORT unsigned short RemotePort() const; BLINK_PLATFORM_EXPORT uint16_t RemotePort() const;
BLINK_PLATFORM_EXPORT void SetRemotePort(unsigned short); BLINK_PLATFORM_EXPORT void SetRemotePort(uint16_t);
// ALPN negotiated protocol of the socket which fetched this resource. // ALPN negotiated protocol of the socket which fetched this resource.
BLINK_PLATFORM_EXPORT WebString AlpnNegotiatedProtocol() const; BLINK_PLATFORM_EXPORT WebString AlpnNegotiatedProtocol() const;
......
...@@ -368,11 +368,11 @@ void WebURLResponse::SetRemoteIPAddress(const WebString& remote_ip_address) { ...@@ -368,11 +368,11 @@ void WebURLResponse::SetRemoteIPAddress(const WebString& remote_ip_address) {
resource_response_->SetRemoteIPAddress(remote_ip_address); resource_response_->SetRemoteIPAddress(remote_ip_address);
} }
unsigned short WebURLResponse::RemotePort() const { uint16_t WebURLResponse::RemotePort() const {
return resource_response_->RemotePort(); return resource_response_->RemotePort();
} }
void WebURLResponse::SetRemotePort(unsigned short remote_port) { void WebURLResponse::SetRemotePort(uint16_t remote_port) {
resource_response_->SetRemotePort(remote_port); resource_response_->SetRemotePort(remote_port);
} }
......
...@@ -357,8 +357,8 @@ class PLATFORM_EXPORT ResourceResponse final { ...@@ -357,8 +357,8 @@ class PLATFORM_EXPORT ResourceResponse final {
remote_ip_address_ = value; remote_ip_address_ = value;
} }
unsigned short RemotePort() const { return remote_port_; } uint16_t RemotePort() const { return remote_port_; }
void SetRemotePort(unsigned short value) { remote_port_ = value; } void SetRemotePort(uint16_t value) { remote_port_ = value; }
const AtomicString& AlpnNegotiatedProtocol() const { const AtomicString& AlpnNegotiatedProtocol() const {
return alpn_negotiated_protocol_; return alpn_negotiated_protocol_;
...@@ -430,7 +430,7 @@ class PLATFORM_EXPORT ResourceResponse final { ...@@ -430,7 +430,7 @@ class PLATFORM_EXPORT ResourceResponse final {
AtomicString remote_ip_address_; AtomicString remote_ip_address_;
// Remote port number of the socket which fetched this resource. // Remote port number of the socket which fetched this resource.
unsigned short remote_port_ = 0; uint16_t remote_port_ = 0;
bool was_cached_ = false; bool was_cached_ = false;
bool connection_reused_ = false; bool connection_reused_ = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment