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

Side by Side Diff: net/socket/ssl_server_socket_nss.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 NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ 5 #ifndef NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_
6 #define NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ 6 #define NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <certt.h> 9 #include <certt.h>
10 #include <keyt.h> 10 #include <keyt.h>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void Disconnect(); 47 virtual void Disconnect();
48 virtual bool IsConnected() const; 48 virtual bool IsConnected() const;
49 virtual bool IsConnectedAndIdle() const; 49 virtual bool IsConnectedAndIdle() const;
50 virtual int GetPeerAddress(AddressList* address) const; 50 virtual int GetPeerAddress(AddressList* address) const;
51 virtual int GetLocalAddress(IPEndPoint* address) const; 51 virtual int GetLocalAddress(IPEndPoint* address) const;
52 virtual const BoundNetLog& NetLog() const; 52 virtual const BoundNetLog& NetLog() const;
53 virtual void SetSubresourceSpeculation(); 53 virtual void SetSubresourceSpeculation();
54 virtual void SetOmniboxSpeculation(); 54 virtual void SetOmniboxSpeculation();
55 virtual bool WasEverUsed() const; 55 virtual bool WasEverUsed() const;
56 virtual bool UsingTCPFastOpen() const; 56 virtual bool UsingTCPFastOpen() const;
57 virtual int64 NumBytesRead() const;
58 virtual base::TimeDelta GetConnectTimeMicros() const;
57 59
58 private: 60 private:
59 enum State { 61 enum State {
60 STATE_NONE, 62 STATE_NONE,
61 STATE_HANDSHAKE, 63 STATE_HANDSHAKE,
62 }; 64 };
63 65
64 int InitializeSSLOptions(); 66 int InitializeSSLOptions();
65 67
66 void OnSendComplete(int result); 68 void OnSendComplete(int result);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 135
134 State next_handshake_state_; 136 State next_handshake_state_;
135 bool completed_handshake_; 137 bool completed_handshake_;
136 138
137 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS); 139 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS);
138 }; 140 };
139 141
140 } // namespace net 142 } // namespace net
141 143
142 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ 144 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698