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

Side by Side Diff: net/base/trusted_spdy_proxy_provider.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: Created 4 years, 11 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698