Index: third_party/WebKit/Source/core/loader/LinkPreloadResourceClients.cpp |
diff --git a/third_party/WebKit/Source/core/loader/LinkPreloadResourceClients.cpp b/third_party/WebKit/Source/core/loader/LinkPreloadResourceClients.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7a0e9ab02bfb8ad0c6da08707a63865db480032d |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/loader/LinkPreloadResourceClients.cpp |
@@ -0,0 +1,23 @@ |
+// Copyright 2016 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 "core/loader/LinkPreloadResourceClients.h" |
+ |
+#include "core/loader/LinkLoader.h" |
+ |
+namespace blink { |
+ |
+void LinkPreloadResourceClient::triggerEvents(Resource* resource) |
+{ |
+ if (m_loader) |
+ m_loader->triggerEvents(resource); |
+} |
+ |
+LinkPreloadResourceClient::LinkPreloadResourceClient(LinkLoader* loader) |
+{ |
+ ASSERT(loader); |
+ m_loader = loader->createWeakPtr(); |
+} |
+ |
+} |