| Index: net/base/trusted_spdy_proxy_provider.h
|
| diff --git a/net/base/trusted_spdy_proxy_provider.h b/net/base/trusted_spdy_proxy_provider.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..908918599b335879931f5ab159904766bb77866c
|
| --- /dev/null
|
| +++ b/net/base/trusted_spdy_proxy_provider.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef NET_BASE_TRUSTED_SPDY_PROXY_PROVIDER_H_
|
| +#define NET_BASE_TRUSTED_SPDY_PROXY_PROVIDER_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "base/memory/weak_ptr.h"
|
| +#include "base/threading/thread_checker.h"
|
| +#include "net/base/net_export.h"
|
| +#include "net/proxy/proxy_server.h"
|
| +
|
| +namespace net {
|
| +
|
| +// TrustedSpdyProxyProvider returns a trusted SPDY proxy which should be allowed
|
| +// to push cross-origin HTTP resources in non-incognito sessions.
|
| +// TrustedSpdyProxyGetter is not thread-safe.
|
| +class NET_EXPORT_PRIVATE TrustedSpdyProxyProvider {
|
| + public:
|
| + virtual ~TrustedSpdyProxyProvider() {}
|
| +
|
| + // Sets |trusted_spdy_proxy| to the trusted SPDY proxy.
|
| + virtual void GetTrustedSpdyProxy(ProxyServer* trusted_spdy_proxy) const = 0;
|
| +
|
| + virtual base::WeakPtr<TrustedSpdyProxyProvider> GetWeakPtr() = 0;
|
| +};
|
| +
|
| +} // namespace net
|
| +
|
| +#endif // NET_BASE_TRUSTED_SPDY_PROXY_PROVIDER_H_
|
|
|