diff options
author | dcheng <dcheng@chromium.org> | 2014-10-21 05:07:58 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-21 12:08:25 +0000 |
commit | c2282aa89148883769f87c74cc3c4608c0933489 (patch) | |
tree | ffa48a41ac574fc701cac64f5457dfc08d2c0c27 /content/browser/renderer_host/p2p/socket_host_tcp.h | |
parent | c793742b02142aed967568c48def709d6d16bd38 (diff) | |
download | chromium_src-c2282aa89148883769f87c74cc3c4608c0933489.zip chromium_src-c2282aa89148883769f87c74cc3c4608c0933489.tar.gz chromium_src-c2282aa89148883769f87c74cc3c4608c0933489.tar.bz2 |
Standardize usage of virtual/override/final in content/browser/
This patch was automatically generated by applying clang fixit hints
generated by the plugin to the source tree.
BUG=417463
TBR=sky@chromium.org
Review URL: https://codereview.chromium.org/667943003
Cr-Commit-Position: refs/heads/master@{#300469}
Diffstat (limited to 'content/browser/renderer_host/p2p/socket_host_tcp.h')
-rw-r--r-- | content/browser/renderer_host/p2p/socket_host_tcp.h | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/content/browser/renderer_host/p2p/socket_host_tcp.h b/content/browser/renderer_host/p2p/socket_host_tcp.h index 24aeb97..e532ae7 100644 --- a/content/browser/renderer_host/p2p/socket_host_tcp.h +++ b/content/browser/renderer_host/p2p/socket_host_tcp.h @@ -32,21 +32,22 @@ class CONTENT_EXPORT P2PSocketHostTcpBase : public P2PSocketHost { int socket_id, P2PSocketType type, net::URLRequestContextGetter* url_context); - virtual ~P2PSocketHostTcpBase(); + ~P2PSocketHostTcpBase() override; bool InitAccepted(const net::IPEndPoint& remote_address, net::StreamSocket* socket); // P2PSocketHost overrides. - virtual bool Init(const net::IPEndPoint& local_address, - const P2PHostAndIPEndPoint& remote_address) override; - virtual void Send(const net::IPEndPoint& to, - const std::vector<char>& data, - const rtc::PacketOptions& options, - uint64 packet_id) override; - virtual P2PSocketHost* AcceptIncomingTcpConnection( - const net::IPEndPoint& remote_address, int id) override; - virtual bool SetOption(P2PSocketOption option, int value) override; + bool Init(const net::IPEndPoint& local_address, + const P2PHostAndIPEndPoint& remote_address) override; + void Send(const net::IPEndPoint& to, + const std::vector<char>& data, + const rtc::PacketOptions& options, + uint64 packet_id) override; + P2PSocketHost* AcceptIncomingTcpConnection( + const net::IPEndPoint& remote_address, + int id) override; + bool SetOption(P2PSocketOption option, int value) override; protected: // Derived classes will provide the implementation. @@ -104,13 +105,14 @@ class CONTENT_EXPORT P2PSocketHostTcp : public P2PSocketHostTcpBase { int socket_id, P2PSocketType type, net::URLRequestContextGetter* url_context); - virtual ~P2PSocketHostTcp(); + ~P2PSocketHostTcp() override; protected: - virtual int ProcessInput(char* input, int input_len) override; - virtual void DoSend(const net::IPEndPoint& to, - const std::vector<char>& data, - const rtc::PacketOptions& options) override; + int ProcessInput(char* input, int input_len) override; + void DoSend(const net::IPEndPoint& to, + const std::vector<char>& data, + const rtc::PacketOptions& options) override; + private: DISALLOW_COPY_AND_ASSIGN(P2PSocketHostTcp); }; @@ -126,13 +128,14 @@ class CONTENT_EXPORT P2PSocketHostStunTcp : public P2PSocketHostTcpBase { P2PSocketType type, net::URLRequestContextGetter* url_context); - virtual ~P2PSocketHostStunTcp(); + ~P2PSocketHostStunTcp() override; protected: - virtual int ProcessInput(char* input, int input_len) override; - virtual void DoSend(const net::IPEndPoint& to, - const std::vector<char>& data, - const rtc::PacketOptions& options) override; + int ProcessInput(char* input, int input_len) override; + void DoSend(const net::IPEndPoint& to, + const std::vector<char>& data, + const rtc::PacketOptions& options) override; + private: int GetExpectedPacketSize(const char* data, int len, int* pad_bytes); |