| OLD | NEW |
| 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 Loading... |
| 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(ConnectionAttempts* out) const override; |
| 97 void ClearConnectionAttempts() override {} |
| 98 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
| 96 | 99 |
| 97 private: | 100 private: |
| 98 void DoAsyncWrite(scoped_refptr<net::IOBuffer> buf, int buf_len, | 101 void DoAsyncWrite(scoped_refptr<net::IOBuffer> buf, int buf_len, |
| 99 const net::CompletionCallback& callback); | 102 const net::CompletionCallback& callback); |
| 100 void DoWrite(net::IOBuffer* buf, int buf_len); | 103 void DoWrite(net::IOBuffer* buf, int buf_len); |
| 101 | 104 |
| 102 bool async_write_; | 105 bool async_write_; |
| 103 bool write_pending_; | 106 bool write_pending_; |
| 104 int write_limit_; | 107 int write_limit_; |
| 105 int next_write_error_; | 108 int next_write_error_; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 157 |
| 155 base::WeakPtrFactory<FakeStreamChannelFactory> weak_factory_; | 158 base::WeakPtrFactory<FakeStreamChannelFactory> weak_factory_; |
| 156 | 159 |
| 157 DISALLOW_COPY_AND_ASSIGN(FakeStreamChannelFactory); | 160 DISALLOW_COPY_AND_ASSIGN(FakeStreamChannelFactory); |
| 158 }; | 161 }; |
| 159 | 162 |
| 160 } // namespace protocol | 163 } // namespace protocol |
| 161 } // namespace remoting | 164 } // namespace remoting |
| 162 | 165 |
| 163 #endif // REMOTING_PROTOCOL_FAKE_STREAM_SOCKET_H_ | 166 #endif // REMOTING_PROTOCOL_FAKE_STREAM_SOCKET_H_ |
| OLD | NEW |