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 #include "remoting/protocol/channel_multiplexer.h" | 5 #include "remoting/protocol/channel_multiplexer.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 bool WasEverUsed() const override { return true; } | 158 bool WasEverUsed() const override { return true; } |
159 bool UsingTCPFastOpen() const override { return false; } | 159 bool UsingTCPFastOpen() const override { return false; } |
160 bool WasNpnNegotiated() const override { return false; } | 160 bool WasNpnNegotiated() const override { return false; } |
161 net::NextProto GetNegotiatedProtocol() const override { | 161 net::NextProto GetNegotiatedProtocol() const override { |
162 return net::kProtoUnknown; | 162 return net::kProtoUnknown; |
163 } | 163 } |
164 bool GetSSLInfo(net::SSLInfo* ssl_info) override { | 164 bool GetSSLInfo(net::SSLInfo* ssl_info) override { |
165 NOTIMPLEMENTED(); | 165 NOTIMPLEMENTED(); |
166 return false; | 166 return false; |
167 } | 167 } |
| 168 void GetConnectionAttempts(net::ConnectionAttempts* out) const override { |
| 169 out->clear(); |
| 170 } |
| 171 void ClearConnectionAttempts() override {} |
| 172 void AddConnectionAttempts(const net::ConnectionAttempts& attempts) override { |
| 173 } |
168 | 174 |
169 private: | 175 private: |
170 MuxChannel* channel_; | 176 MuxChannel* channel_; |
171 | 177 |
172 int base_channel_error_ = net::OK; | 178 int base_channel_error_ = net::OK; |
173 | 179 |
174 net::CompletionCallback read_callback_; | 180 net::CompletionCallback read_callback_; |
175 scoped_refptr<net::IOBuffer> read_buffer_; | 181 scoped_refptr<net::IOBuffer> read_buffer_; |
176 int read_buffer_size_; | 182 int read_buffer_size_; |
177 | 183 |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 channel->OnIncomingPacket(packet.Pass(), done_task); | 520 channel->OnIncomingPacket(packet.Pass(), done_task); |
515 } | 521 } |
516 | 522 |
517 bool ChannelMultiplexer::DoWrite(scoped_ptr<MultiplexPacket> packet, | 523 bool ChannelMultiplexer::DoWrite(scoped_ptr<MultiplexPacket> packet, |
518 const base::Closure& done_task) { | 524 const base::Closure& done_task) { |
519 return writer_.Write(SerializeAndFrameMessage(*packet), done_task); | 525 return writer_.Write(SerializeAndFrameMessage(*packet), done_task); |
520 } | 526 } |
521 | 527 |
522 } // namespace protocol | 528 } // namespace protocol |
523 } // namespace remoting | 529 } // namespace remoting |
OLD | NEW |