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

Unified Diff: net/socket/ssl_server_socket_nss.h

Issue 6339012: More net/ method ordering. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More done while waiting for previous patch to clear Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/socket/ssl_client_socket_nss.cc ('k') | net/socket/ssl_server_socket_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_server_socket_nss.h
diff --git a/net/socket/ssl_server_socket_nss.h b/net/socket/ssl_server_socket_nss.h
index 3883c9b77c4a144238961b8840bc0024f2fbcd12..1289272a96b2d74918b7e3e108326307a65dcee0 100644
--- a/net/socket/ssl_server_socket_nss.h
+++ b/net/socket/ssl_server_socket_nss.h
@@ -42,11 +42,14 @@ class SSLServerSocketNSS : public SSLServerSocket {
CompletionCallback* callback);
virtual int Write(IOBuffer* buf, int buf_len,
CompletionCallback* callback);
- virtual bool SetReceiveBufferSize(int32 size) { return false; }
- virtual bool SetSendBufferSize(int32 size) { return false; }
+ virtual bool SetReceiveBufferSize(int32 size);
+ virtual bool SetSendBufferSize(int32 size);
private:
- virtual int Init();
+ enum State {
+ STATE_NONE,
+ STATE_HANDSHAKE,
+ };
int InitializeSSLOptions();
@@ -59,8 +62,8 @@ class SSLServerSocketNSS : public SSLServerSocket {
int BufferRecv();
void BufferRecvComplete(int result);
bool DoTransportIO();
- int DoPayloadWrite();
int DoPayloadRead();
+ int DoPayloadWrite();
int DoHandshakeLoop(int last_io_result);
int DoReadLoop(int result);
@@ -76,6 +79,8 @@ class SSLServerSocketNSS : public SSLServerSocket {
PRBool is_server);
static void HandshakeCallback(PRFileDesc* socket, void* arg);
+ virtual int Init();
+
// Members used to send and receive buffer.
CompletionCallbackImpl<SSLServerSocketNSS> buffer_send_callback_;
CompletionCallbackImpl<SSLServerSocketNSS> buffer_recv_callback_;
@@ -118,10 +123,6 @@ class SSLServerSocketNSS : public SSLServerSocket {
// Private key used by the server.
scoped_ptr<base::RSAPrivateKey> key_;
- enum State {
- STATE_NONE,
- STATE_HANDSHAKE,
- };
State next_handshake_state_;
bool completed_handshake_;
« no previous file with comments | « net/socket/ssl_client_socket_nss.cc ('k') | net/socket/ssl_server_socket_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698