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

Unified Diff: third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp

Issue 2043083002: Speculatively launch Service Workers on mouse/touch events. [2/5] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert BUILD.gn Created 4 years, 5 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: third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
index a20266fcdd1ef15fa79106752a7fa66fdd4fd095..e1eec169675a07b27375288e54e46ebedc5b0656 100644
--- a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
@@ -37,6 +37,7 @@
#include "core/page/ChromeClient.h"
#include "platform/network/NetworkHints.h"
#include "platform/weborigin/SecurityPolicy.h"
+#include "public/platform/WebNavigationHintType.h"
namespace blink {
@@ -44,15 +45,6 @@ using namespace HTMLNames;
class HTMLAnchorElement::NavigationHintSender : public GarbageCollected<HTMLAnchorElement::NavigationHintSender> {
public:
- // TODO(horo): Move WebNavigationHintType to public/ directory.
- enum class WebNavigationHintType {
- Unknown,
- LinkMouseDown,
- LinkTapUnconfirmed,
- LinkTapDown,
- Last = LinkTapDown
- };
-
static NavigationHintSender* create(HTMLAnchorElement* anchorElement)
{
return new NavigationHintSender(anchorElement);
@@ -116,7 +108,7 @@ void HTMLAnchorElement::NavigationHintSender::maybeSendNavigationHint(WebNavigat
if (!shouldSendNavigationHint())
return;
- // TODO(horo): Send the navigation hint message to the browser process.
+ sendNavigationHint(m_anchorElement->href(), type);
}
HTMLAnchorElement::HTMLAnchorElement(const QualifiedName& tagName, Document& document)

Powered by Google App Engine
This is Rietveld 408576698