| OLD | NEW | 
|    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_STREAM_SOCKET_STREAM_H_ |    5 #ifndef NET_SOCKET_STREAM_SOCKET_STREAM_H_ | 
|    6 #define NET_SOCKET_STREAM_SOCKET_STREAM_H_ |    6 #define NET_SOCKET_STREAM_SOCKET_STREAM_H_ | 
|    7  |    7  | 
|    8 #include <deque> |    8 #include <deque> | 
|    9 #include <map> |    9 #include <map> | 
|   10 #include <string> |   10 #include <string> | 
| (...skipping 18 matching lines...) Expand all  Loading... | 
|   29 class CertVerifier; |   29 class CertVerifier; | 
|   30 class ClientSocketFactory; |   30 class ClientSocketFactory; | 
|   31 class CookieOptions; |   31 class CookieOptions; | 
|   32 class HostResolver; |   32 class HostResolver; | 
|   33 class HttpAuthController; |   33 class HttpAuthController; | 
|   34 class SSLInfo; |   34 class SSLInfo; | 
|   35 class ServerBoundCertService; |   35 class ServerBoundCertService; | 
|   36 class SingleRequestHostResolver; |   36 class SingleRequestHostResolver; | 
|   37 class StreamSocket; |   37 class StreamSocket; | 
|   38 class SocketStreamMetrics; |   38 class SocketStreamMetrics; | 
 |   39 class TransportSecurityState; | 
|   39 class URLRequestContext; |   40 class URLRequestContext; | 
|   40  |   41  | 
|   41 // SocketStream is used to implement Web Sockets. |   42 // SocketStream is used to implement Web Sockets. | 
|   42 // It provides plain full-duplex stream with proxy and SSL support. |   43 // It provides plain full-duplex stream with proxy and SSL support. | 
|   43 // For proxy authentication, only basic mechanisum is supported.  It will try |   44 // For proxy authentication, only basic mechanisum is supported.  It will try | 
|   44 // authentication identity for proxy URL first.  If server requires proxy |   45 // authentication identity for proxy URL first.  If server requires proxy | 
|   45 // authentication, it will try authentication identity for realm that server |   46 // authentication, it will try authentication identity for realm that server | 
|   46 // requests. |   47 // requests. | 
|   47 class NET_EXPORT SocketStream |   48 class NET_EXPORT SocketStream | 
|   48     : public base::RefCountedThreadSafe<SocketStream> { |   49     : public base::RefCountedThreadSafe<SocketStream> { | 
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  341   //   sum of the size of buffers in |pending_write_bufs_| |  342   //   sum of the size of buffers in |pending_write_bufs_| | 
|  342   // exceeds this limit, SendData() fails. |  343   // exceeds this limit, SendData() fails. | 
|  343   int max_pending_send_allowed_; |  344   int max_pending_send_allowed_; | 
|  344   const URLRequestContext* context_; |  345   const URLRequestContext* context_; | 
|  345  |  346  | 
|  346   UserDataMap user_data_; |  347   UserDataMap user_data_; | 
|  347  |  348  | 
|  348   State next_state_; |  349   State next_state_; | 
|  349   HostResolver* host_resolver_; |  350   HostResolver* host_resolver_; | 
|  350   CertVerifier* cert_verifier_; |  351   CertVerifier* cert_verifier_; | 
 |  352   TransportSecurityState* transport_security_state_; | 
|  351   ServerBoundCertService* server_bound_cert_service_; |  353   ServerBoundCertService* server_bound_cert_service_; | 
|  352   ClientSocketFactory* factory_; |  354   ClientSocketFactory* factory_; | 
|  353  |  355  | 
|  354   ProxyMode proxy_mode_; |  356   ProxyMode proxy_mode_; | 
|  355  |  357  | 
|  356   GURL proxy_url_; |  358   GURL proxy_url_; | 
|  357   ProxyService::PacRequest* pac_request_; |  359   ProxyService::PacRequest* pac_request_; | 
|  358   ProxyInfo proxy_info_; |  360   ProxyInfo proxy_info_; | 
|  359  |  361  | 
|  360   scoped_refptr<HttpAuthController> proxy_auth_controller_; |  362   scoped_refptr<HttpAuthController> proxy_auth_controller_; | 
| (...skipping 28 matching lines...) Expand all  Loading... | 
|  389   bool server_closed_; |  391   bool server_closed_; | 
|  390  |  392  | 
|  391   scoped_ptr<SocketStreamMetrics> metrics_; |  393   scoped_ptr<SocketStreamMetrics> metrics_; | 
|  392  |  394  | 
|  393   DISALLOW_COPY_AND_ASSIGN(SocketStream); |  395   DISALLOW_COPY_AND_ASSIGN(SocketStream); | 
|  394 }; |  396 }; | 
|  395  |  397  | 
|  396 }  // namespace net |  398 }  // namespace net | 
|  397  |  399  | 
|  398 #endif  // NET_SOCKET_STREAM_SOCKET_STREAM_H_ |  400 #endif  // NET_SOCKET_STREAM_SOCKET_STREAM_H_ | 
| OLD | NEW |