OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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_HTTP_HTTP_STREAM_FACTORY_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_H_ |
6 #define NET_HTTP_HTTP_STREAM_FACTORY_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 30 matching lines...) Expand all Loading... |
41 const BoundNetLog& net_log); | 41 const BoundNetLog& net_log); |
42 | 42 |
43 virtual int PreconnectStreams(int num_streams, | 43 virtual int PreconnectStreams(int num_streams, |
44 const HttpRequestInfo* info, | 44 const HttpRequestInfo* info, |
45 SSLConfig* ssl_config, | 45 SSLConfig* ssl_config, |
46 ProxyInfo* proxy_info, | 46 ProxyInfo* proxy_info, |
47 HttpNetworkSession* session, | 47 HttpNetworkSession* session, |
48 const BoundNetLog& net_log, | 48 const BoundNetLog& net_log, |
49 CompletionCallback* callback); | 49 CompletionCallback* callback); |
50 | 50 |
51 void AddTLSIntolerantServer(const GURL& url); | 51 virtual void AddTLSIntolerantServer(const GURL& url); |
52 bool IsTLSIntolerantServer(const GURL& url); | 52 virtual bool IsTLSIntolerantServer(const GURL& url); |
53 | 53 |
54 virtual void ProcessAlternateProtocol( | 54 virtual void ProcessAlternateProtocol( |
55 HttpAlternateProtocols* alternate_protocols, | 55 HttpAlternateProtocols* alternate_protocols, |
56 const std::string& alternate_protocol_str, | 56 const std::string& alternate_protocol_str, |
57 const HostPortPair& http_host_port_pair); | 57 const HostPortPair& http_host_port_pair); |
58 | 58 |
59 virtual GURL ApplyHostMappingRules(const GURL& url, HostPortPair* endpoint); | 59 virtual GURL ApplyHostMappingRules(const GURL& url, HostPortPair* endpoint); |
60 | 60 |
61 // HttpStreamRequest::PreconnectDelegate API | 61 // HttpStreamRequest::PreconnectDelegate API |
62 virtual void OnPreconnectsComplete(HttpStreamRequest* request, int result); | 62 virtual void OnPreconnectsComplete(HttpStreamRequest* request, int result); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 static bool force_spdy_always_; | 120 static bool force_spdy_always_; |
121 static bool ignore_certificate_errors_; | 121 static bool ignore_certificate_errors_; |
122 | 122 |
123 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); | 123 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); |
124 }; | 124 }; |
125 | 125 |
126 } // namespace net | 126 } // namespace net |
127 | 127 |
128 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ | 128 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ |
129 | 129 |
OLD | NEW |