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

Unified Diff: chrome/renderer/net/prescient_networking_dispatcher.h

Issue 14749005: Implement WebPrescientNetworking to trigger preconnect from Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 7 years, 7 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: chrome/renderer/net/prescient_networking_dispatcher.h
diff --git a/chrome/renderer/net/prescient_networking_dispatcher.h b/chrome/renderer/net/prescient_networking_dispatcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..da89dda8d5b73cd2d3b9d9aef8934b896bece78b
--- /dev/null
+++ b/chrome/renderer/net/prescient_networking_dispatcher.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2013 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 CHROME_RENDERER_NET_PRESCIENT_NETWORKING_DISPATCHER_H_
+#define CHROME_RENDERER_NET_PRESCIENT_NETWORKING_DISPATCHER_H_
+
+#include "base/compiler_specific.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebPrescientNetworking.h"
+
+class PrescientNetworkingDispatcher : public WebKit::WebPrescientNetworking {
+ public:
+ virtual ~PrescientNetworkingDispatcher();
+
+ virtual void preconnect(const WebKit::WebURL& url,
+ WebKit::WebPreconnectMotivation motivation) OVERRIDE;
+};
+
+#endif // CHROME_RENDERER_NET_PRESCIENT_NETWORKING_DISPATCHER_H_

Powered by Google App Engine
This is Rietveld 408576698