| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_EXTENSIONS_API_SOCKET_TLS_SOCKET_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SOCKET_TLS_SOCKET_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKET_TLS_SOCKET_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKET_TLS_SOCKET_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "extensions/browser/api/socket/socket.h" | 12 #include "extensions/browser/api/socket/socket.h" |
| 11 #include "extensions/browser/api/socket/socket_api.h" | 13 #include "extensions/browser/api/socket/socket_api.h" |
| 12 #include "extensions/browser/api/socket/tcp_socket.h" | 14 #include "extensions/browser/api/socket/tcp_socket.h" |
| 13 #include "net/ssl/ssl_config_service.h" | 15 #include "net/ssl/ssl_config_service.h" |
| 14 | 16 |
| 15 namespace net { | 17 namespace net { |
| 16 class Socket; | 18 class Socket; |
| 17 class CertVerifier; | 19 class CertVerifier; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // Fails. This should have been called on the TCP socket before secure() was | 60 // Fails. This should have been called on the TCP socket before secure() was |
| 59 // invoked. | 61 // invoked. |
| 60 bool SetKeepAlive(bool enable, int delay) override; | 62 bool SetKeepAlive(bool enable, int delay) override; |
| 61 | 63 |
| 62 // Fails. This should have been called on the TCP socket before secure() was | 64 // Fails. This should have been called on the TCP socket before secure() was |
| 63 // invoked. | 65 // invoked. |
| 64 bool SetNoDelay(bool no_delay) override; | 66 bool SetNoDelay(bool no_delay) override; |
| 65 | 67 |
| 66 // Fails. TLSSocket is only a client. | 68 // Fails. TLSSocket is only a client. |
| 67 int Listen(const std::string& address, | 69 int Listen(const std::string& address, |
| 68 uint16 port, | 70 uint16_t port, |
| 69 int backlog, | 71 int backlog, |
| 70 std::string* error_msg) override; | 72 std::string* error_msg) override; |
| 71 | 73 |
| 72 // Fails. TLSSocket is only a client. | 74 // Fails. TLSSocket is only a client. |
| 73 void Accept(const AcceptCompletionCallback& callback) override; | 75 void Accept(const AcceptCompletionCallback& callback) override; |
| 74 | 76 |
| 75 // Forwards. | 77 // Forwards. |
| 76 bool IsConnected() override; | 78 bool IsConnected() override; |
| 77 | 79 |
| 78 // Forwards. | 80 // Forwards. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 109 int result); | 111 int result); |
| 110 | 112 |
| 111 scoped_ptr<net::StreamSocket> tls_socket_; | 113 scoped_ptr<net::StreamSocket> tls_socket_; |
| 112 ReadCompletionCallback read_callback_; | 114 ReadCompletionCallback read_callback_; |
| 113 }; | 115 }; |
| 114 | 116 |
| 115 } // namespace extensions | 117 } // namespace extensions |
| 116 | 118 |
| 117 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKET_TLS_SOCKET_H_ | 119 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKET_TLS_SOCKET_H_ |
| 118 | 120 |
| OLD | NEW |