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

Unified 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698