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

Side by Side Diff: jingle/glue/proxy_resolving_client_socket.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/fake_ssl_client_socket.h ('k') | jingle/glue/pseudotcp_adapter.h » ('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 // This StreamSocket implementation wraps a ClientSocketHandle that is created 5 // This StreamSocket implementation wraps a ClientSocketHandle that is created
6 // from the client socket pool after resolving proxies. 6 // from the client socket pool after resolving proxies.
7 7
8 #ifndef JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ 8 #ifndef JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_
9 #define JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ 9 #define JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // socket. The hostname must be non-empty and the port must be > 0. 42 // socket. The hostname must be non-empty and the port must be > 0.
43 ProxyResolvingClientSocket( 43 ProxyResolvingClientSocket(
44 net::ClientSocketFactory* socket_factory, 44 net::ClientSocketFactory* socket_factory,
45 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter, 45 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter,
46 const net::SSLConfig& ssl_config, 46 const net::SSLConfig& ssl_config,
47 const net::HostPortPair& dest_host_port_pair); 47 const net::HostPortPair& dest_host_port_pair);
48 virtual ~ProxyResolvingClientSocket(); 48 virtual ~ProxyResolvingClientSocket();
49 49
50 // net::StreamSocket implementation. 50 // net::StreamSocket implementation.
51 virtual int Read(net::IOBuffer* buf, int buf_len, 51 virtual int Read(net::IOBuffer* buf, int buf_len,
52 const net::CompletionCallback& callback) OVERRIDE; 52 const net::CompletionCallback& callback) override;
53 virtual int Write(net::IOBuffer* buf, int buf_len, 53 virtual int Write(net::IOBuffer* buf, int buf_len,
54 const net::CompletionCallback& callback) OVERRIDE; 54 const net::CompletionCallback& callback) override;
55 virtual int SetReceiveBufferSize(int32 size) OVERRIDE; 55 virtual int SetReceiveBufferSize(int32 size) override;
56 virtual int SetSendBufferSize(int32 size) OVERRIDE; 56 virtual int SetSendBufferSize(int32 size) override;
57 virtual int Connect(const net::CompletionCallback& callback) OVERRIDE; 57 virtual int Connect(const net::CompletionCallback& callback) override;
58 virtual void Disconnect() OVERRIDE; 58 virtual void Disconnect() override;
59 virtual bool IsConnected() const OVERRIDE; 59 virtual bool IsConnected() const override;
60 virtual bool IsConnectedAndIdle() const OVERRIDE; 60 virtual bool IsConnectedAndIdle() const override;
61 virtual int GetPeerAddress(net::IPEndPoint* address) const OVERRIDE; 61 virtual int GetPeerAddress(net::IPEndPoint* address) const override;
62 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; 62 virtual int GetLocalAddress(net::IPEndPoint* address) const override;
63 virtual const net::BoundNetLog& NetLog() const OVERRIDE; 63 virtual const net::BoundNetLog& NetLog() const override;
64 virtual void SetSubresourceSpeculation() OVERRIDE; 64 virtual void SetSubresourceSpeculation() override;
65 virtual void SetOmniboxSpeculation() OVERRIDE; 65 virtual void SetOmniboxSpeculation() override;
66 virtual bool WasEverUsed() const OVERRIDE; 66 virtual bool WasEverUsed() const override;
67 virtual bool UsingTCPFastOpen() const OVERRIDE; 67 virtual bool UsingTCPFastOpen() const override;
68 virtual bool WasNpnNegotiated() const OVERRIDE; 68 virtual bool WasNpnNegotiated() const override;
69 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE; 69 virtual net::NextProto GetNegotiatedProtocol() const override;
70 virtual bool GetSSLInfo(net::SSLInfo* ssl_info) OVERRIDE; 70 virtual bool GetSSLInfo(net::SSLInfo* ssl_info) override;
71 71
72 private: 72 private:
73 // Proxy resolution and connection functions. 73 // Proxy resolution and connection functions.
74 void ProcessProxyResolveDone(int status); 74 void ProcessProxyResolveDone(int status);
75 void ProcessConnectDone(int status); 75 void ProcessConnectDone(int status);
76 76
77 void CloseTransportSocket(); 77 void CloseTransportSocket();
78 void RunUserConnectCallback(int status); 78 void RunUserConnectCallback(int status);
79 int ReconsiderProxyAfterError(int error); 79 int ReconsiderProxyAfterError(int error);
80 void ReportSuccessfulProxyConnection(); 80 void ReportSuccessfulProxyConnection();
(...skipping 19 matching lines...) Expand all
100 net::CompletionCallback user_connect_callback_; 100 net::CompletionCallback user_connect_callback_;
101 101
102 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; 102 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_;
103 103
104 DISALLOW_COPY_AND_ASSIGN(ProxyResolvingClientSocket); 104 DISALLOW_COPY_AND_ASSIGN(ProxyResolvingClientSocket);
105 }; 105 };
106 106
107 } // namespace jingle_glue 107 } // namespace jingle_glue
108 108
109 #endif // JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ 109 #endif // JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « jingle/glue/fake_ssl_client_socket.h ('k') | jingle/glue/pseudotcp_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698