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

Unified Diff: chrome/common/render_messages.h

Issue 14749005: Implement WebPrescientNetworking to trigger preconnect from Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use WebPrerenderingSupport instead of platform API / removed motivationId 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/common/render_messages.h
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index 2758407b2c2c1da090f874bbce94c15676063522..e4160e1c5cf829f7955f0a936ed3d5a1825c408c 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -32,6 +32,7 @@
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebPreconnectMotivation.h"
#include "ui/base/window_open_disposition.h"
#include "ui/gfx/rect.h"
@@ -126,6 +127,7 @@ IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment)
IPC_ENUM_TRAITS(ThemeBackgroundImageTiling)
IPC_ENUM_TRAITS(TranslateErrors::Type)
IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level)
+IPC_ENUM_TRAITS(WebKit::WebPreconnectMotivation)
IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status)
IPC_STRUCT_TRAITS_MEMBER(value)
@@ -622,6 +624,11 @@ IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats,
IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch,
std::vector<std::string> /* hostnames */)
+// Request for preconnect to host providing resource specified by URL
+IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_Preconnect,
+ GURL /* preconnect target url */,
+ WebKit::WebPreconnectMotivation)
+
// Notifies when a plugin couldn't be loaded because it's outdated.
IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin,
int /* placeholder ID */,

Powered by Google App Engine
This is Rietveld 408576698