| 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(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 Loading... |
| 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_ |
| OLD | NEW |