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

Side by Side Diff: remoting/jingle_glue/ssl_socket_adapter.h

Issue 7251004: Deciding best connection to schedule requests on based on cwnd and idle time (Reopened after revert) (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Syncing to head Created 9 years, 6 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_JINGLE_GLUE_SSL_SOCKET_ADAPTER_H_ 5 #ifndef REMOTING_JINGLE_GLUE_SSL_SOCKET_ADAPTER_H_
6 #define REMOTING_JINGLE_GLUE_SSL_SOCKET_ADAPTER_H_ 6 #define REMOTING_JINGLE_GLUE_SSL_SOCKET_ADAPTER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "net/base/completion_callback.h" 9 #include "net/base/completion_callback.h"
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual void Disconnect(); 45 virtual void Disconnect();
46 virtual bool IsConnected() const; 46 virtual bool IsConnected() const;
47 virtual bool IsConnectedAndIdle() const; 47 virtual bool IsConnectedAndIdle() const;
48 virtual int GetPeerAddress(net::AddressList* address) const; 48 virtual int GetPeerAddress(net::AddressList* address) const;
49 virtual int GetLocalAddress(net::IPEndPoint* address) const; 49 virtual int GetLocalAddress(net::IPEndPoint* address) const;
50 virtual const net::BoundNetLog& NetLog() const; 50 virtual const net::BoundNetLog& NetLog() const;
51 virtual void SetSubresourceSpeculation(); 51 virtual void SetSubresourceSpeculation();
52 virtual void SetOmniboxSpeculation(); 52 virtual void SetOmniboxSpeculation();
53 virtual bool WasEverUsed() const; 53 virtual bool WasEverUsed() const;
54 virtual bool UsingTCPFastOpen() const; 54 virtual bool UsingTCPFastOpen() const;
55 virtual int64 NumBytesRead() const;
56 virtual base::TimeDelta GetConnectTimeMicros() const;
55 57
56 // net::Socket implementation 58 // net::Socket implementation
57 59
58 virtual int Read(net::IOBuffer* buf, int buf_len, 60 virtual int Read(net::IOBuffer* buf, int buf_len,
59 net::CompletionCallback* callback); 61 net::CompletionCallback* callback);
60 virtual int Write(net::IOBuffer* buf, int buf_len, 62 virtual int Write(net::IOBuffer* buf, int buf_len,
61 net::CompletionCallback* callback); 63 net::CompletionCallback* callback);
62 virtual bool SetReceiveBufferSize(int32 size); 64 virtual bool SetReceiveBufferSize(int32 size);
63 virtual bool SetSendBufferSize(int32 size); 65 virtual bool SetSendBufferSize(int32 size);
64 66
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 IOState write_state_; 145 IOState write_state_;
144 scoped_refptr<net::IOBuffer> transport_buf_; 146 scoped_refptr<net::IOBuffer> transport_buf_;
145 int data_transferred_; 147 int data_transferred_;
146 148
147 DISALLOW_COPY_AND_ASSIGN(SSLSocketAdapter); 149 DISALLOW_COPY_AND_ASSIGN(SSLSocketAdapter);
148 }; 150 };
149 151
150 } // namespace remoting 152 } // namespace remoting
151 153
152 #endif // REMOTING_JINGLE_GLUE_SSL_SOCKET_ADAPTER_H_ 154 #endif // REMOTING_JINGLE_GLUE_SSL_SOCKET_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698