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

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

Issue 1781783002: Implement support for link type serviceworker in link elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move LinkServiceWorker to modules/serviceworkers Created 4 years, 9 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/LinkRelAttribute.cpp
diff --git a/third_party/WebKit/Source/core/html/LinkRelAttribute.cpp b/third_party/WebKit/Source/core/html/LinkRelAttribute.cpp
index 825ea48363d4b5ff7270f7ad17a0b8efcd42d9c7..21b068b6ffb2a1f5bd2ec0a4727e783b6f850d43 100644
--- a/third_party/WebKit/Source/core/html/LinkRelAttribute.cpp
+++ b/third_party/WebKit/Source/core/html/LinkRelAttribute.cpp
@@ -47,6 +47,7 @@ LinkRelAttribute::LinkRelAttribute(const String& rel)
, m_isLinkNext(false)
, m_isImport(false)
, m_isManifest(false)
+ , m_isServiceWorker(false)
{
if (rel.isEmpty())
return;
@@ -88,6 +89,8 @@ LinkRelAttribute::LinkRelAttribute(const String& rel)
m_iconType = TouchPrecomposedIcon;
} else if (equalIgnoringCase(linkType, "manifest")) {
m_isManifest = true;
+ } else if (equalIgnoringCase(linkType, "serviceworker")) {
+ m_isServiceWorker = true;
}
// Adding or removing a value here requires you to update RelList::supportedTokens()
}

Powered by Google App Engine
This is Rietveld 408576698