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

Side by Side Diff: jingle/glue/pseudotcp_adapter.h

Issue 628123002: Replacing the OVERRIDE with override and FINAL with final in jingle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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 unified diff | Download patch
« no previous file with comments | « jingle/glue/proxy_resolving_client_socket.h ('k') | jingle/glue/pseudotcp_adapter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef JINGLE_GLUE_PSEUDOTCP_ADAPTER_H_ 5 #ifndef JINGLE_GLUE_PSEUDOTCP_ADAPTER_H_
6 #define JINGLE_GLUE_PSEUDOTCP_ADAPTER_H_ 6 #define JINGLE_GLUE_PSEUDOTCP_ADAPTER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 13 matching lines...) Expand all
24 // adapter, and an additional reference held on the stack during callbacks. 24 // adapter, and an additional reference held on the stack during callbacks.
25 class PseudoTcpAdapter : public net::StreamSocket, base::NonThreadSafe { 25 class PseudoTcpAdapter : public net::StreamSocket, base::NonThreadSafe {
26 public: 26 public:
27 // Creates an adapter for the supplied Socket. |socket| should already 27 // Creates an adapter for the supplied Socket. |socket| should already
28 // be ready for use, and ownership of it will be assumed by the adapter. 28 // be ready for use, and ownership of it will be assumed by the adapter.
29 PseudoTcpAdapter(net::Socket* socket); 29 PseudoTcpAdapter(net::Socket* socket);
30 virtual ~PseudoTcpAdapter(); 30 virtual ~PseudoTcpAdapter();
31 31
32 // net::Socket implementation. 32 // net::Socket implementation.
33 virtual int Read(net::IOBuffer* buffer, int buffer_size, 33 virtual int Read(net::IOBuffer* buffer, int buffer_size,
34 const net::CompletionCallback& callback) OVERRIDE; 34 const net::CompletionCallback& callback) override;
35 virtual int Write(net::IOBuffer* buffer, int buffer_size, 35 virtual int Write(net::IOBuffer* buffer, int buffer_size,
36 const net::CompletionCallback& callback) OVERRIDE; 36 const net::CompletionCallback& callback) override;
37 virtual int SetReceiveBufferSize(int32 size) OVERRIDE; 37 virtual int SetReceiveBufferSize(int32 size) override;
38 virtual int SetSendBufferSize(int32 size) OVERRIDE; 38 virtual int SetSendBufferSize(int32 size) override;
39 39
40 // net::StreamSocket implementation. 40 // net::StreamSocket implementation.
41 virtual int Connect(const net::CompletionCallback& callback) OVERRIDE; 41 virtual int Connect(const net::CompletionCallback& callback) override;
42 virtual void Disconnect() OVERRIDE; 42 virtual void Disconnect() override;
43 virtual bool IsConnected() const OVERRIDE; 43 virtual bool IsConnected() const override;
44 virtual bool IsConnectedAndIdle() const OVERRIDE; 44 virtual bool IsConnectedAndIdle() const override;
45 virtual int GetPeerAddress(net::IPEndPoint* address) const OVERRIDE; 45 virtual int GetPeerAddress(net::IPEndPoint* address) const override;
46 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; 46 virtual int GetLocalAddress(net::IPEndPoint* address) const override;
47 virtual const net::BoundNetLog& NetLog() const OVERRIDE; 47 virtual const net::BoundNetLog& NetLog() const override;
48 virtual void SetSubresourceSpeculation() OVERRIDE; 48 virtual void SetSubresourceSpeculation() override;
49 virtual void SetOmniboxSpeculation() OVERRIDE; 49 virtual void SetOmniboxSpeculation() override;
50 virtual bool WasEverUsed() const OVERRIDE; 50 virtual bool WasEverUsed() const override;
51 virtual bool UsingTCPFastOpen() const OVERRIDE; 51 virtual bool UsingTCPFastOpen() const override;
52 virtual bool WasNpnNegotiated() const OVERRIDE; 52 virtual bool WasNpnNegotiated() const override;
53 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE; 53 virtual net::NextProto GetNegotiatedProtocol() const override;
54 virtual bool GetSSLInfo(net::SSLInfo* ssl_info) OVERRIDE; 54 virtual bool GetSSLInfo(net::SSLInfo* ssl_info) override;
55 55
56 // Set the delay for sending ACK. 56 // Set the delay for sending ACK.
57 void SetAckDelay(int delay_ms); 57 void SetAckDelay(int delay_ms);
58 58
59 // Set whether Nagle's algorithm is enabled. 59 // Set whether Nagle's algorithm is enabled.
60 void SetNoDelay(bool no_delay); 60 void SetNoDelay(bool no_delay);
61 61
62 // When write_waits_for_send flag is set to true the Write() method 62 // When write_waits_for_send flag is set to true the Write() method
63 // will wait until the data is sent to the remote end before the 63 // will wait until the data is sent to the remote end before the
64 // write completes (it still doesn't wait until the data is received 64 // write completes (it still doesn't wait until the data is received
(...skipping 18 matching lines...) Expand all
83 scoped_refptr<Core> core_; 83 scoped_refptr<Core> core_;
84 84
85 net::BoundNetLog net_log_; 85 net::BoundNetLog net_log_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(PseudoTcpAdapter); 87 DISALLOW_COPY_AND_ASSIGN(PseudoTcpAdapter);
88 }; 88 };
89 89
90 } // namespace jingle_glue 90 } // namespace jingle_glue
91 91
92 #endif // JINGLE_GLUE_STREAM_SOCKET_ADAPTER_H_ 92 #endif // JINGLE_GLUE_STREAM_SOCKET_ADAPTER_H_
OLDNEW
« no previous file with comments | « jingle/glue/proxy_resolving_client_socket.h ('k') | jingle/glue/pseudotcp_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698