| 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 NET_BASE_PROXY_DELEGATE_H_ | 5 #ifndef NET_BASE_PROXY_DELEGATE_H_ |
| 6 #define NET_BASE_PROXY_DELEGATE_H_ | 6 #define NET_BASE_PROXY_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "net/base/net_export.h" | 9 #include "net/base/net_export.h" |
| 10 | 10 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 virtual void OnTunnelConnectCompleted(const HostPortPair& endpoint, | 60 virtual void OnTunnelConnectCompleted(const HostPortPair& endpoint, |
| 61 const HostPortPair& proxy_server, | 61 const HostPortPair& proxy_server, |
| 62 int net_error) = 0; | 62 int net_error) = 0; |
| 63 | 63 |
| 64 // Called after the response headers for the tunnel request are received. | 64 // Called after the response headers for the tunnel request are received. |
| 65 virtual void OnTunnelHeadersReceived( | 65 virtual void OnTunnelHeadersReceived( |
| 66 const HostPortPair& origin, | 66 const HostPortPair& origin, |
| 67 const HostPortPair& proxy_server, | 67 const HostPortPair& proxy_server, |
| 68 const HttpResponseHeaders& response_headers) = 0; | 68 const HttpResponseHeaders& response_headers) = 0; |
| 69 | 69 |
| 70 // Returns true if |proxy_server| is a trusted SPDY/HTTP2 proxy that is |
| 71 // allowed to push cross-origin resources. |
| 72 virtual bool IsTrustedSpdyProxy(const net::ProxyServer& proxy_server) = 0; |
| 73 |
| 70 private: | 74 private: |
| 71 DISALLOW_COPY_AND_ASSIGN(ProxyDelegate); | 75 DISALLOW_COPY_AND_ASSIGN(ProxyDelegate); |
| 72 }; | 76 }; |
| 73 | 77 |
| 74 } | 78 } |
| 75 | 79 |
| 76 #endif // NET_BASE_PROXY_DELEGATE_H_ | 80 #endif // NET_BASE_PROXY_DELEGATE_H_ |
| OLD | NEW |