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

Side by Side Diff: net/socket/buffered_write_stream_socket.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, 8 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 | « net/quic/quic_http_stream.h ('k') | net/socket/buffered_write_stream_socket.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 NET_SOCKET_BUFFERED_WRITE_STREAM_SOCKET_H_ 5 #ifndef NET_SOCKET_BUFFERED_WRITE_STREAM_SOCKET_H_
6 #define NET_SOCKET_BUFFERED_WRITE_STREAM_SOCKET_H_ 6 #define NET_SOCKET_BUFFERED_WRITE_STREAM_SOCKET_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "net/base/net_log.h" 9 #include "net/base/net_log.h"
10 #include "net/socket/stream_socket.h" 10 #include "net/socket/stream_socket.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual void Disconnect() OVERRIDE; 49 virtual void Disconnect() OVERRIDE;
50 virtual bool IsConnected() const OVERRIDE; 50 virtual bool IsConnected() const OVERRIDE;
51 virtual bool IsConnectedAndIdle() const OVERRIDE; 51 virtual bool IsConnectedAndIdle() const OVERRIDE;
52 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; 52 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE;
53 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 53 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
54 virtual const BoundNetLog& NetLog() const OVERRIDE; 54 virtual const BoundNetLog& NetLog() const OVERRIDE;
55 virtual void SetSubresourceSpeculation() OVERRIDE; 55 virtual void SetSubresourceSpeculation() OVERRIDE;
56 virtual void SetOmniboxSpeculation() OVERRIDE; 56 virtual void SetOmniboxSpeculation() OVERRIDE;
57 virtual bool WasEverUsed() const OVERRIDE; 57 virtual bool WasEverUsed() const OVERRIDE;
58 virtual bool UsingTCPFastOpen() const OVERRIDE; 58 virtual bool UsingTCPFastOpen() const OVERRIDE;
59 virtual int64 NumBytesRead() const OVERRIDE;
60 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
61 virtual bool WasNpnNegotiated() const OVERRIDE; 59 virtual bool WasNpnNegotiated() const OVERRIDE;
62 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; 60 virtual NextProto GetNegotiatedProtocol() const OVERRIDE;
63 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 61 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
64 62
65 private: 63 private:
66 void DoDelayedWrite(); 64 void DoDelayedWrite();
67 void OnIOComplete(int result); 65 void OnIOComplete(int result);
68 66
69 scoped_ptr<StreamSocket> wrapped_socket_; 67 scoped_ptr<StreamSocket> wrapped_socket_;
70 scoped_refptr<GrowableIOBuffer> io_buffer_; 68 scoped_refptr<GrowableIOBuffer> io_buffer_;
71 scoped_refptr<GrowableIOBuffer> backup_buffer_; 69 scoped_refptr<GrowableIOBuffer> backup_buffer_;
72 base::WeakPtrFactory<BufferedWriteStreamSocket> weak_factory_; 70 base::WeakPtrFactory<BufferedWriteStreamSocket> weak_factory_;
73 bool callback_pending_; 71 bool callback_pending_;
74 bool wrapped_write_in_progress_; 72 bool wrapped_write_in_progress_;
75 int error_; 73 int error_;
76 }; 74 };
77 75
78 } // namespace net 76 } // namespace net
79 77
80 #endif // NET_SOCKET_STREAM_SOCKET_H_ 78 #endif // NET_SOCKET_STREAM_SOCKET_H_
OLDNEW
« no previous file with comments | « net/quic/quic_http_stream.h ('k') | net/socket/buffered_write_stream_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698