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

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: incorporated falken's comment 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
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..97da2c7c56add908d0a94c133b6124563dcee17b 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;
falken 2016/06/15 13:48:19 s/sender/Sender
horo 2016/06/16 06:02:44 Done.
};
inline LinkHash HTMLAnchorElement::visitedLinkHash() const

Powered by Google App Engine
This is Rietveld 408576698