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

Unified Diff: Source/core/platform/chromium/support/WebPrescientNetworking.cpp

Issue 14746002: Add WebPrescientNetworking to trigger preconnect from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use WebPrescientNetworking instead of WebPrerenderingSupport 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: Source/core/platform/chromium/support/WebPrescientNetworking.cpp
diff --git a/Source/core/platform/chromium/support/Platform.cpp b/Source/core/platform/chromium/support/WebPrescientNetworking.cpp
similarity index 82%
copy from Source/core/platform/chromium/support/Platform.cpp
copy to Source/core/platform/chromium/support/WebPrescientNetworking.cpp
index 29eebd97dacdd199a113d647216ee472901349fc..ab2c22a2eeb1e000b771d8db9f21a79d28aa6fb1 100644
--- a/Source/core/platform/chromium/support/Platform.cpp
+++ b/Source/core/platform/chromium/support/WebPrescientNetworking.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012 Google Inc. All rights reserved.
+ * Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -29,25 +29,25 @@
*/
#include "config.h"
-#include <public/Platform.h>
+#include <public/WebPrescientNetworking.h>
namespace WebKit {
-static Platform* s_platform = 0;
+WebPrescientNetworking* WebPrescientNetworking::s_platform = 0;
abarth-chromium 2013/05/14 06:18:56 There's no need for this file. Please delete it.
kouhei (in TOK) 2013/05/14 06:34:07 Done.
-void Platform::initialize(Platform* platform)
+void WebPrescientNetworking::initialize(WebPrescientNetworking* platform)
{
s_platform = platform;
}
-void Platform::shutdown()
+void WebPrescientNetworking::shutdown()
{
s_platform = 0;
}
-Platform* Platform::current()
+WebPrescientNetworking* WebPrescientNetworking::current()
{
return s_platform;
}
-} // namespace WebKit
+}

Powered by Google App Engine
This is Rietveld 408576698