Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "net/socket/ssl_server_socket.h" | |
|
lzheng
2011/01/24 18:46:35
nit: put this behind "base/logging.h"
bulach
2011/01/24 20:54:33
Done.
| |
| 6 | |
| 7 #include "base/logging.h" | |
| 8 | |
| 9 namespace net { | |
| 10 | |
| 11 class SSLServerSocketOpenSSL : public SSLServerSocket { | |
| 12 public: | |
| 13 virtual ~SSLServerSocketOpenSSL() {} | |
| 14 | |
| 15 // SSLServerSocket | |
| 16 virtual int Accept(CompletionCallback* callback) { | |
| 17 // TODO(bulach): implement. | |
| 18 NOTIMPLEMENTED(); | |
| 19 return 0; | |
| 20 } | |
| 21 | |
| 22 // Socket | |
| 23 virtual int Read(IOBuffer* buf, int buf_len, | |
| 24 CompletionCallback* callback) { | |
| 25 // TODO(bulach): implement. | |
| 26 NOTIMPLEMENTED(); | |
| 27 return 0; | |
| 28 } | |
| 29 virtual int Write(IOBuffer* buf, int buf_len, | |
| 30 CompletionCallback* callback) { | |
| 31 // TODO(bulach): implement. | |
| 32 NOTIMPLEMENTED(); | |
| 33 return 0; | |
| 34 } | |
| 35 | |
| 36 virtual bool SetReceiveBufferSize(int32 size) { | |
| 37 // TODO(bulach): implement. | |
| 38 NOTIMPLEMENTED(); | |
| 39 return false; | |
| 40 } | |
| 41 | |
| 42 virtual bool SetSendBufferSize(int32 size) { | |
| 43 // TODO(bulach): implement. | |
| 44 NOTIMPLEMENTED(); | |
| 45 return false; | |
| 46 } | |
| 47 }; | |
| 48 | |
| 49 SSLServerSocket* CreateSSLServerSocket( | |
| 50 Socket* socket, X509Certificate* certificate, base::RSAPrivateKey* key, | |
|
wtc
2011/01/21 22:48:51
List one parameter per line.
bulach
2011/01/24 20:54:33
Done.
| |
| 51 const SSLConfig& ssl_config) { | |
| 52 return new SSLServerSocketOpenSSL(); | |
| 53 } | |
| 54 | |
| 55 } // namespace net | |
| OLD | NEW |