Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Side by Side Diff: remoting/protocol/channel_multiplexer.cc

Issue 1096203006: Collect all ConnectionAttempts from both sockets in TransportConnectJob. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@domrel_serverip1
Patch Set: Return fake ConnectionAttempt in MockTCPClientSocket Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/spdy/spdy_proxy_client_socket.cc ('k') | remoting/protocol/fake_stream_socket.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/spdy/spdy_proxy_client_socket.cc ('k') | remoting/protocol/fake_stream_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698