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

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

Issue 1096203006: Collect all ConnectionAttempts from both sockets in TransportConnectJob. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@domrel_serverip1
Patch Set: Return fake ConnectionAttempt in MockTCPClientSocket Created 5 years, 7 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
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 int GetPeerAddress(net::IPEndPoint* address) const override; 63 int GetPeerAddress(net::IPEndPoint* address) const override;
64 int GetLocalAddress(net::IPEndPoint* address) const override; 64 int GetLocalAddress(net::IPEndPoint* address) const override;
65 const net::BoundNetLog& NetLog() const override; 65 const net::BoundNetLog& NetLog() const override;
66 void SetSubresourceSpeculation() override; 66 void SetSubresourceSpeculation() override;
67 void SetOmniboxSpeculation() override; 67 void SetOmniboxSpeculation() override;
68 bool WasEverUsed() const override; 68 bool WasEverUsed() const override;
69 bool UsingTCPFastOpen() const override; 69 bool UsingTCPFastOpen() const override;
70 bool WasNpnNegotiated() const override; 70 bool WasNpnNegotiated() const override;
71 net::NextProto GetNegotiatedProtocol() const override; 71 net::NextProto GetNegotiatedProtocol() const override;
72 bool GetSSLInfo(net::SSLInfo* ssl_info) override; 72 bool GetSSLInfo(net::SSLInfo* ssl_info) override;
73 void GetConnectionAttempts(net::ConnectionAttempts* out) const override;
74 void ClearConnectionAttempts() override {}
75 void AddConnectionAttempts(const net::ConnectionAttempts& attempts) override {
76 }
73 77
74 private: 78 private:
75 // Proxy resolution and connection functions. 79 // Proxy resolution and connection functions.
76 void ProcessProxyResolveDone(int status); 80 void ProcessProxyResolveDone(int status);
77 void ProcessConnectDone(int status); 81 void ProcessConnectDone(int status);
78 82
79 void CloseTransportSocket(); 83 void CloseTransportSocket();
80 void RunUserConnectCallback(int status); 84 void RunUserConnectCallback(int status);
81 int ReconsiderProxyAfterError(int error); 85 int ReconsiderProxyAfterError(int error);
82 void ReportSuccessfulProxyConnection(); 86 void ReportSuccessfulProxyConnection();
(...skipping 19 matching lines...) Expand all
102 net::CompletionCallback user_connect_callback_; 106 net::CompletionCallback user_connect_callback_;
103 107
104 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; 108 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_;
105 109
106 DISALLOW_COPY_AND_ASSIGN(ProxyResolvingClientSocket); 110 DISALLOW_COPY_AND_ASSIGN(ProxyResolvingClientSocket);
107 }; 111 };
108 112
109 } // namespace jingle_glue 113 } // namespace jingle_glue
110 114
111 #endif // JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ 115 #endif // JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « jingle/glue/fake_ssl_client_socket_unittest.cc ('k') | jingle/glue/proxy_resolving_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698