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

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

Issue 227473008: make SetReceiveBufferSize and SetSendBufferSize return net error codes (instead of bools) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Original CL, as was submitted, and previously reverted Created 6 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
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_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 7
8 #include <certt.h> 8 #include <certt.h>
9 #include <keyt.h> 9 #include <keyt.h>
10 #include <nspr.h> 10 #include <nspr.h>
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 virtual bool UsingTCPFastOpen() const OVERRIDE; 95 virtual bool UsingTCPFastOpen() const OVERRIDE;
96 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 96 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
97 97
98 // Socket implementation. 98 // Socket implementation.
99 virtual int Read(IOBuffer* buf, 99 virtual int Read(IOBuffer* buf,
100 int buf_len, 100 int buf_len,
101 const CompletionCallback& callback) OVERRIDE; 101 const CompletionCallback& callback) OVERRIDE;
102 virtual int Write(IOBuffer* buf, 102 virtual int Write(IOBuffer* buf,
103 int buf_len, 103 int buf_len,
104 const CompletionCallback& callback) OVERRIDE; 104 const CompletionCallback& callback) OVERRIDE;
105 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 105 virtual int SetReceiveBufferSize(int32 size) OVERRIDE;
106 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 106 virtual int SetSendBufferSize(int32 size) OVERRIDE;
107 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; 107 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE;
108 108
109 protected: 109 protected:
110 // SSLClientSocket implementation. 110 // SSLClientSocket implementation.
111 virtual scoped_refptr<X509Certificate> GetUnverifiedServerCertificateChain() 111 virtual scoped_refptr<X509Certificate> GetUnverifiedServerCertificateChain()
112 const OVERRIDE; 112 const OVERRIDE;
113 113
114 private: 114 private:
115 // Helper class to handle marshalling any NSS interaction to and from the 115 // Helper class to handle marshalling any NSS interaction to and from the
116 // NSS and network task runners. Not every call needs to happen on the Core 116 // NSS and network task runners. Not every call needs to happen on the Core
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // Added the following code Debugging in release mode. 206 // Added the following code Debugging in release mode.
207 mutable base::Lock lock_; 207 mutable base::Lock lock_;
208 // This is mutable so that CalledOnValidThread can set it. 208 // This is mutable so that CalledOnValidThread can set it.
209 // It's guarded by |lock_|. 209 // It's guarded by |lock_|.
210 mutable base::PlatformThreadId valid_thread_id_; 210 mutable base::PlatformThreadId valid_thread_id_;
211 }; 211 };
212 212
213 } // namespace net 213 } // namespace net
214 214
215 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 215 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698