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

Side by Side Diff: remoting/protocol/fake_session.h

Issue 12886034: Remove experimental code to pick the "warmest" socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync, fix conflict Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/channel_multiplexer.cc ('k') | remoting/protocol/fake_session.cc » ('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 #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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual void Disconnect() OVERRIDE; 64 virtual void Disconnect() OVERRIDE;
65 virtual bool IsConnected() const OVERRIDE; 65 virtual bool IsConnected() const OVERRIDE;
66 virtual bool IsConnectedAndIdle() const OVERRIDE; 66 virtual bool IsConnectedAndIdle() const OVERRIDE;
67 virtual int GetPeerAddress(net::IPEndPoint* address) const OVERRIDE; 67 virtual int GetPeerAddress(net::IPEndPoint* address) const OVERRIDE;
68 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; 68 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE;
69 virtual const net::BoundNetLog& NetLog() const OVERRIDE; 69 virtual const net::BoundNetLog& NetLog() const OVERRIDE;
70 virtual void SetSubresourceSpeculation() OVERRIDE; 70 virtual void SetSubresourceSpeculation() OVERRIDE;
71 virtual void SetOmniboxSpeculation() OVERRIDE; 71 virtual void SetOmniboxSpeculation() OVERRIDE;
72 virtual bool WasEverUsed() const OVERRIDE; 72 virtual bool WasEverUsed() const OVERRIDE;
73 virtual bool UsingTCPFastOpen() const OVERRIDE; 73 virtual bool UsingTCPFastOpen() const OVERRIDE;
74 virtual int64 NumBytesRead() const OVERRIDE;
75 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
76 virtual bool WasNpnNegotiated() const OVERRIDE; 74 virtual bool WasNpnNegotiated() const OVERRIDE;
77 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE; 75 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE;
78 virtual bool GetSSLInfo(net::SSLInfo* ssl_info) OVERRIDE; 76 virtual bool GetSSLInfo(net::SSLInfo* ssl_info) OVERRIDE;
79 77
80 private: 78 private:
81 void DoAsyncWrite(scoped_refptr<net::IOBuffer> buf, int buf_len, 79 void DoAsyncWrite(scoped_refptr<net::IOBuffer> buf, int buf_len,
82 const net::CompletionCallback& callback); 80 const net::CompletionCallback& callback);
83 void DoWrite(net::IOBuffer* buf, int buf_len); 81 void DoWrite(net::IOBuffer* buf, int buf_len);
84 82
85 bool async_write_; 83 bool async_write_;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 209
212 base::WeakPtrFactory<FakeSession> weak_factory_; 210 base::WeakPtrFactory<FakeSession> weak_factory_;
213 211
214 DISALLOW_COPY_AND_ASSIGN(FakeSession); 212 DISALLOW_COPY_AND_ASSIGN(FakeSession);
215 }; 213 };
216 214
217 } // namespace protocol 215 } // namespace protocol
218 } // namespace remoting 216 } // namespace remoting
219 217
220 #endif // REMOTING_PROTOCOL_FAKE_SESSION_H_ 218 #endif // REMOTING_PROTOCOL_FAKE_SESSION_H_
OLDNEW
« no previous file with comments | « remoting/protocol/channel_multiplexer.cc ('k') | remoting/protocol/fake_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698