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

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

Issue 2043863003: Speculatively launch Service Workers on mouse/touch events. [1/5] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use DECLARE_TRACE Created 4 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLAnchorElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLAnchorElement.h b/third_party/WebKit/Source/core/html/HTMLAnchorElement.h
index b52ddc4dc5c089292da7c1a84053a602c47244e0..333f07206c156f25c91badae56438514b5f7e06c 100644
--- a/third_party/WebKit/Source/core/html/HTMLAnchorElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLAnchorElement.h
@@ -87,6 +87,8 @@ public:
void sendPings(const KURL& destinationURL) const;
+ DECLARE_VIRTUAL_TRACE();
+
protected:
HTMLAnchorElement(const QualifiedName&, Document&);
@@ -95,6 +97,8 @@ protected:
bool matchesEnabledPseudoClass() const override;
private:
+ class NavigationHintSender;
+
bool shouldHaveFocusAppearance() const final;
void dispatchFocusEvent(Element* oldFocusedElement, WebFocusType, InputDeviceCapabilities* sourceCapabilities) override;
void dispatchBlurEvent(Element* newFocusedElement, WebFocusType, InputDeviceCapabilities* sourceCapabilities) override;
@@ -111,10 +115,12 @@ private:
bool isInteractiveContent() const final;
InsertionNotificationRequest insertedInto(ContainerNode*) override;
void handleClick(Event*);
+ NavigationHintSender* ensureNavigationHintSender();
uint32_t m_linkRelations;
mutable LinkHash m_cachedVisitedLinkHash;
bool m_wasFocusedByMouse;
+ Member<NavigationHintSender> m_navigationHintSender;
};
inline LinkHash HTMLAnchorElement::visitedLinkHash() const
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698