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

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

Issue 8801004: base::Bind: Convert StreamSocket::Connect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes Created 9 years 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/socket/ssl_client_socket_win.cc ('k') | net/socket/ssl_server_socket_nss.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) 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 28 matching lines...) Expand all
39 unsigned int outlen) OVERRIDE; 39 unsigned int outlen) OVERRIDE;
40 40
41 // Socket interface (via StreamSocket). 41 // Socket interface (via StreamSocket).
42 virtual int Read(IOBuffer* buf, int buf_len, 42 virtual int Read(IOBuffer* buf, int buf_len,
43 OldCompletionCallback* callback) OVERRIDE; 43 OldCompletionCallback* callback) OVERRIDE;
44 virtual int Write(IOBuffer* buf, int buf_len, 44 virtual int Write(IOBuffer* buf, int buf_len,
45 OldCompletionCallback* callback) OVERRIDE; 45 OldCompletionCallback* callback) OVERRIDE;
46 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 46 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
47 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 47 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
48 48
49 // StreamSocket interface. 49 // StreamSocket implementation.
50 virtual int Connect(OldCompletionCallback* callback) OVERRIDE; 50 virtual int Connect(OldCompletionCallback* callback) OVERRIDE;
51 virtual int Connect(const CompletionCallback& callback) OVERRIDE;
51 virtual void Disconnect() OVERRIDE; 52 virtual void Disconnect() OVERRIDE;
52 virtual bool IsConnected() const OVERRIDE; 53 virtual bool IsConnected() const OVERRIDE;
53 virtual bool IsConnectedAndIdle() const OVERRIDE; 54 virtual bool IsConnectedAndIdle() const OVERRIDE;
54 virtual int GetPeerAddress(AddressList* address) const OVERRIDE; 55 virtual int GetPeerAddress(AddressList* address) const OVERRIDE;
55 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 56 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
56 virtual const BoundNetLog& NetLog() const OVERRIDE; 57 virtual const BoundNetLog& NetLog() const OVERRIDE;
57 virtual void SetSubresourceSpeculation() OVERRIDE; 58 virtual void SetSubresourceSpeculation() OVERRIDE;
58 virtual void SetOmniboxSpeculation() OVERRIDE; 59 virtual void SetOmniboxSpeculation() OVERRIDE;
59 virtual bool WasEverUsed() const OVERRIDE; 60 virtual bool WasEverUsed() const OVERRIDE;
60 virtual bool UsingTCPFastOpen() const OVERRIDE; 61 virtual bool UsingTCPFastOpen() const OVERRIDE;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 140
140 State next_handshake_state_; 141 State next_handshake_state_;
141 bool completed_handshake_; 142 bool completed_handshake_;
142 143
143 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS); 144 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS);
144 }; 145 };
145 146
146 } // namespace net 147 } // namespace net
147 148
148 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ 149 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_win.cc ('k') | net/socket/ssl_server_socket_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698