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

Unified Diff: Source/core/loader/Preconnecter.cpp

Issue 1152043005: Add <link rel=preconnect> support to the HTMLPreloadScanner (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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: Source/core/loader/Preconnecter.cpp
diff --git a/Source/core/loader/Preconnecter.cpp b/Source/core/loader/Preconnecter.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..ed29d093ab04b22a83c96a76ad955a1ba9f74699
--- /dev/null
+++ b/Source/core/loader/Preconnecter.cpp
@@ -0,0 +1,23 @@
+// 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.
+
+#include "config.h"
+#include "core/loader/Preconnecter.h"
+
+#include "platform/network/NetworkHints.h"
+#include "wtf/PassOwnPtr.h"
+
+namespace blink {
+
+PassOwnPtr<PreconnecterHost> Preconnecter::create()
+{
+ return adoptPtr(new Preconnecter());
+}
+
+void Preconnecter::preconnect(KURL& host, CrossOriginAttributeValue crossOrigin)
+{
+ preconnect(host, crossOrigin);
+}
+
+}; // namespace blink
« Source/core/html/parser/HTMLPreloadScannerTest.cpp ('K') | « Source/core/loader/Preconnecter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698