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

Side by Side Diff: net/socket/ssl_client_socket_nss.h

Issue 6990036: Deciding best connection to schedule requests on based on cwnd and idle time (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' 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_CLIENT_SOCKET_NSS_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 6 #define NET_SOCKET_SSL_CLIENT_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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual void Disconnect(); 69 virtual void Disconnect();
70 virtual bool IsConnected() const; 70 virtual bool IsConnected() const;
71 virtual bool IsConnectedAndIdle() const; 71 virtual bool IsConnectedAndIdle() const;
72 virtual int GetPeerAddress(AddressList* address) const; 72 virtual int GetPeerAddress(AddressList* address) const;
73 virtual int GetLocalAddress(IPEndPoint* address) const; 73 virtual int GetLocalAddress(IPEndPoint* address) const;
74 virtual const BoundNetLog& NetLog() const; 74 virtual const BoundNetLog& NetLog() const;
75 virtual void SetSubresourceSpeculation(); 75 virtual void SetSubresourceSpeculation();
76 virtual void SetOmniboxSpeculation(); 76 virtual void SetOmniboxSpeculation();
77 virtual bool WasEverUsed() const; 77 virtual bool WasEverUsed() const;
78 virtual bool UsingTCPFastOpen() const; 78 virtual bool UsingTCPFastOpen() const;
79 virtual int NumBytesRead() const;
80 virtual double GetRTTInMs() const;
79 81
80 // Socket methods: 82 // Socket methods:
81 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); 83 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
82 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); 84 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback);
83 virtual bool SetReceiveBufferSize(int32 size); 85 virtual bool SetReceiveBufferSize(int32 size);
84 virtual bool SetSendBufferSize(int32 size); 86 virtual bool SetSendBufferSize(int32 size);
85 87
86 private: 88 private:
87 enum State { 89 enum State {
88 STATE_NONE, 90 STATE_NONE,
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // Added the following code Debugging in release mode. 256 // Added the following code Debugging in release mode.
255 mutable base::Lock lock_; 257 mutable base::Lock lock_;
256 // This is mutable so that CalledOnValidThread can set it. 258 // This is mutable so that CalledOnValidThread can set it.
257 // It's guarded by |lock_|. 259 // It's guarded by |lock_|.
258 mutable base::PlatformThreadId valid_thread_id_; 260 mutable base::PlatformThreadId valid_thread_id_;
259 }; 261 };
260 262
261 } // namespace net 263 } // namespace net
262 264
263 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 265 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698