Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: net/base/proxy_delegate.h

Issue 1547273003: Set trusted SPDY proxy dynamically on per-profile basis (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added net/base/test_proxy_delegate.{h,cc} Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « jingle/glue/proxy_resolving_client_socket.cc ('k') | net/base/test_proxy_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « jingle/glue/proxy_resolving_client_socket.cc ('k') | net/base/test_proxy_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698