| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_BASE_TRUSTED_SPDY_PROXY_PROVIDER_H_ |
| 6 #define NET_BASE_TRUSTED_SPDY_PROXY_PROVIDER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/threading/thread_checker.h" |
| 11 #include "net/base/net_export.h" |
| 12 #include "net/proxy/proxy_server.h" |
| 13 |
| 14 namespace net { |
| 15 |
| 16 // TrustedSpdyProxyProvider returns a trusted SPDY proxy which should be allowed |
| 17 // to push cross-origin HTTP resources in non-incognito sessions. |
| 18 // TrustedSpdyProxyGetter is not thread-safe. |
| 19 class NET_EXPORT_PRIVATE TrustedSpdyProxyProvider { |
| 20 public: |
| 21 virtual ~TrustedSpdyProxyProvider() {} |
| 22 |
| 23 // Sets |trusted_spdy_proxy| to the trusted SPDY proxy. |
| 24 virtual void GetTrustedSpdyProxy(ProxyServer* trusted_spdy_proxy) const = 0; |
| 25 |
| 26 virtual base::WeakPtr<TrustedSpdyProxyProvider> GetWeakPtr() = 0; |
| 27 }; |
| 28 |
| 29 } // namespace net |
| 30 |
| 31 #endif // NET_BASE_TRUSTED_SPDY_PROXY_PROVIDER_H_ |
| OLD | NEW |