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

Side by Side Diff: remoting/protocol/fake_stream_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
« no previous file with comments | « remoting/protocol/channel_multiplexer.cc ('k') | remoting/protocol/fake_stream_socket.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 REMOTING_PROTOCOL_FAKE_STREAM_SOCKET_H_ 5 #ifndef REMOTING_PROTOCOL_FAKE_STREAM_SOCKET_H_
6 #define REMOTING_PROTOCOL_FAKE_STREAM_SOCKET_H_ 6 #define REMOTING_PROTOCOL_FAKE_STREAM_SOCKET_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 int GetPeerAddress(net::IPEndPoint* address) const override; 86 int GetPeerAddress(net::IPEndPoint* address) const override;
87 int GetLocalAddress(net::IPEndPoint* address) const override; 87 int GetLocalAddress(net::IPEndPoint* address) const override;
88 const net::BoundNetLog& NetLog() const override; 88 const net::BoundNetLog& NetLog() const override;
89 void SetSubresourceSpeculation() override; 89 void SetSubresourceSpeculation() override;
90 void SetOmniboxSpeculation() override; 90 void SetOmniboxSpeculation() override;
91 bool WasEverUsed() const override; 91 bool WasEverUsed() const override;
92 bool UsingTCPFastOpen() const override; 92 bool UsingTCPFastOpen() const override;
93 bool WasNpnNegotiated() const override; 93 bool WasNpnNegotiated() const override;
94 net::NextProto GetNegotiatedProtocol() const override; 94 net::NextProto GetNegotiatedProtocol() const override;
95 bool GetSSLInfo(net::SSLInfo* ssl_info) override; 95 bool GetSSLInfo(net::SSLInfo* ssl_info) override;
96 void GetConnectionAttempts(net::ConnectionAttempts* out) const override;
97 void ClearConnectionAttempts() override {}
98 void AddConnectionAttempts(const net::ConnectionAttempts& attempts) override {
99 }
96 100
97 private: 101 private:
98 void DoAsyncWrite(scoped_refptr<net::IOBuffer> buf, int buf_len, 102 void DoAsyncWrite(scoped_refptr<net::IOBuffer> buf, int buf_len,
99 const net::CompletionCallback& callback); 103 const net::CompletionCallback& callback);
100 void DoWrite(net::IOBuffer* buf, int buf_len); 104 void DoWrite(net::IOBuffer* buf, int buf_len);
101 105
102 bool async_write_; 106 bool async_write_;
103 bool write_pending_; 107 bool write_pending_;
104 int write_limit_; 108 int write_limit_;
105 int next_write_error_; 109 int next_write_error_;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 158
155 base::WeakPtrFactory<FakeStreamChannelFactory> weak_factory_; 159 base::WeakPtrFactory<FakeStreamChannelFactory> weak_factory_;
156 160
157 DISALLOW_COPY_AND_ASSIGN(FakeStreamChannelFactory); 161 DISALLOW_COPY_AND_ASSIGN(FakeStreamChannelFactory);
158 }; 162 };
159 163
160 } // namespace protocol 164 } // namespace protocol
161 } // namespace remoting 165 } // namespace remoting
162 166
163 #endif // REMOTING_PROTOCOL_FAKE_STREAM_SOCKET_H_ 167 #endif // REMOTING_PROTOCOL_FAKE_STREAM_SOCKET_H_
OLDNEW
« no previous file with comments | « remoting/protocol/channel_multiplexer.cc ('k') | remoting/protocol/fake_stream_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698