| OLD | NEW |
| 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 #ifndef REMOTING_PROTOCOL_FAKE_SESSION_H_ | 5 #ifndef REMOTING_PROTOCOL_FAKE_SESSION_H_ |
| 6 #define REMOTING_PROTOCOL_FAKE_SESSION_H_ | 6 #define REMOTING_PROTOCOL_FAKE_SESSION_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 const net::CompletionCallback& callback) OVERRIDE; | 52 const net::CompletionCallback& callback) OVERRIDE; |
| 53 | 53 |
| 54 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; | 54 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; |
| 55 virtual bool SetSendBufferSize(int32 size) OVERRIDE; | 55 virtual bool SetSendBufferSize(int32 size) OVERRIDE; |
| 56 | 56 |
| 57 // net::StreamSocket interface. | 57 // net::StreamSocket interface. |
| 58 virtual int Connect(const net::CompletionCallback& callback) OVERRIDE; | 58 virtual int Connect(const net::CompletionCallback& callback) OVERRIDE; |
| 59 virtual void Disconnect() OVERRIDE; | 59 virtual void Disconnect() OVERRIDE; |
| 60 virtual bool IsConnected() const OVERRIDE; | 60 virtual bool IsConnected() const OVERRIDE; |
| 61 virtual bool IsConnectedAndIdle() const OVERRIDE; | 61 virtual bool IsConnectedAndIdle() const OVERRIDE; |
| 62 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; | 62 virtual int GetPeerAddress(net::IPEndPoint* address) const OVERRIDE; |
| 63 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; | 63 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; |
| 64 virtual const net::BoundNetLog& NetLog() const OVERRIDE; | 64 virtual const net::BoundNetLog& NetLog() const OVERRIDE; |
| 65 virtual void SetSubresourceSpeculation() OVERRIDE; | 65 virtual void SetSubresourceSpeculation() OVERRIDE; |
| 66 virtual void SetOmniboxSpeculation() OVERRIDE; | 66 virtual void SetOmniboxSpeculation() OVERRIDE; |
| 67 virtual bool WasEverUsed() const OVERRIDE; | 67 virtual bool WasEverUsed() const OVERRIDE; |
| 68 virtual bool UsingTCPFastOpen() const OVERRIDE; | 68 virtual bool UsingTCPFastOpen() const OVERRIDE; |
| 69 virtual int64 NumBytesRead() const OVERRIDE; | 69 virtual int64 NumBytesRead() const OVERRIDE; |
| 70 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; | 70 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; |
| 71 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE; | 71 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE; |
| 72 | 72 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 ErrorCode error_; | 189 ErrorCode error_; |
| 190 bool closed_; | 190 bool closed_; |
| 191 | 191 |
| 192 DISALLOW_COPY_AND_ASSIGN(FakeSession); | 192 DISALLOW_COPY_AND_ASSIGN(FakeSession); |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 } // namespace protocol | 195 } // namespace protocol |
| 196 } // namespace remoting | 196 } // namespace remoting |
| 197 | 197 |
| 198 #endif // REMOTING_PROTOCOL_FAKE_SESSION_H_ | 198 #endif // REMOTING_PROTOCOL_FAKE_SESSION_H_ |
| OLD | NEW |