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

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

Issue 2525743002: Make URLRequestContext a MemoryDumpProvider (Abandoned) (Closed)
Patch Set: rebased to 7f3d142161b15869f6bea58ac43c5f52ce5834ac Created 4 years 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void SetOmniboxSpeculation() override; 72 void SetOmniboxSpeculation() override;
73 bool WasEverUsed() const override; 73 bool WasEverUsed() const override;
74 bool WasNpnNegotiated() const override; 74 bool WasNpnNegotiated() const override;
75 net::NextProto GetNegotiatedProtocol() const override; 75 net::NextProto GetNegotiatedProtocol() const override;
76 bool GetSSLInfo(net::SSLInfo* ssl_info) override; 76 bool GetSSLInfo(net::SSLInfo* ssl_info) override;
77 void GetConnectionAttempts(net::ConnectionAttempts* out) const override; 77 void GetConnectionAttempts(net::ConnectionAttempts* out) const override;
78 void ClearConnectionAttempts() override {} 78 void ClearConnectionAttempts() override {}
79 void AddConnectionAttempts(const net::ConnectionAttempts& attempts) override { 79 void AddConnectionAttempts(const net::ConnectionAttempts& attempts) override {
80 } 80 }
81 int64_t GetTotalReceivedBytes() const override; 81 int64_t GetTotalReceivedBytes() const override;
82 void DumpMemoryStats(
83 base::trace_event::MemoryAllocatorDump* dump) const override;
82 84
83 private: 85 private:
84 // Proxy resolution and connection functions. 86 // Proxy resolution and connection functions.
85 void ProcessProxyResolveDone(int status); 87 void ProcessProxyResolveDone(int status);
86 void ProcessConnectDone(int status); 88 void ProcessConnectDone(int status);
87 89
88 void CloseTransportSocket(); 90 void CloseTransportSocket();
89 void RunUserConnectCallback(int status); 91 void RunUserConnectCallback(int status);
90 int ReconsiderProxyAfterError(int error); 92 int ReconsiderProxyAfterError(int error);
91 void ReportSuccessfulProxyConnection(); 93 void ReportSuccessfulProxyConnection();
(...skipping 19 matching lines...) Expand all
111 net::CompletionCallback user_connect_callback_; 113 net::CompletionCallback user_connect_callback_;
112 114
113 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; 115 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_;
114 116
115 DISALLOW_COPY_AND_ASSIGN(ProxyResolvingClientSocket); 117 DISALLOW_COPY_AND_ASSIGN(ProxyResolvingClientSocket);
116 }; 118 };
117 119
118 } // namespace jingle_glue 120 } // namespace jingle_glue
119 121
120 #endif // JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ 122 #endif // JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698