| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CHROMECAST_NET_FAKE_STREAM_SOCKET_H_ | 5 #ifndef CHROMECAST_NET_FAKE_STREAM_SOCKET_H_ |
| 6 #define CHROMECAST_NET_FAKE_STREAM_SOCKET_H_ | 6 #define CHROMECAST_NET_FAKE_STREAM_SOCKET_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 void SetSubresourceSpeculation() override; | 45 void SetSubresourceSpeculation() override; |
| 46 void SetOmniboxSpeculation() override; | 46 void SetOmniboxSpeculation() override; |
| 47 bool WasEverUsed() const override; | 47 bool WasEverUsed() const override; |
| 48 bool WasNpnNegotiated() const override; | 48 bool WasNpnNegotiated() const override; |
| 49 net::NextProto GetNegotiatedProtocol() const override; | 49 net::NextProto GetNegotiatedProtocol() const override; |
| 50 bool GetSSLInfo(net::SSLInfo* ssl_info) override; | 50 bool GetSSLInfo(net::SSLInfo* ssl_info) override; |
| 51 void GetConnectionAttempts(net::ConnectionAttempts* out) const override; | 51 void GetConnectionAttempts(net::ConnectionAttempts* out) const override; |
| 52 void ClearConnectionAttempts() override; | 52 void ClearConnectionAttempts() override; |
| 53 void AddConnectionAttempts(const net::ConnectionAttempts& attempts) override; | 53 void AddConnectionAttempts(const net::ConnectionAttempts& attempts) override; |
| 54 int64_t GetTotalReceivedBytes() const override; | 54 int64_t GetTotalReceivedBytes() const override; |
| 55 void DumpMemoryStats( |
| 56 base::trace_event::MemoryAllocatorDump* dump) const override; |
| 55 | 57 |
| 56 private: | 58 private: |
| 57 const net::IPEndPoint local_address_; | 59 const net::IPEndPoint local_address_; |
| 58 const std::unique_ptr<SocketBuffer> buffer_; | 60 const std::unique_ptr<SocketBuffer> buffer_; |
| 59 FakeStreamSocket* peer_; | 61 FakeStreamSocket* peer_; |
| 60 net::NetLogWithSource net_log_; | 62 net::NetLogWithSource net_log_; |
| 61 | 63 |
| 62 DISALLOW_COPY_AND_ASSIGN(FakeStreamSocket); | 64 DISALLOW_COPY_AND_ASSIGN(FakeStreamSocket); |
| 63 }; | 65 }; |
| 64 | 66 |
| 65 } // namespace chromecast | 67 } // namespace chromecast |
| 66 | 68 |
| 67 #endif // CHROMECAST_NET_FAKE_STREAM_SOCKET_H_ | 69 #endif // CHROMECAST_NET_FAKE_STREAM_SOCKET_H_ |
| OLD | NEW |