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

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

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: fix IPC Created 3 years, 4 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/HTMLLinkElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLLinkElement.h b/third_party/WebKit/Source/core/html/HTMLLinkElement.h
index c9aa13cfc823dac8339060643d7dae23f205308c..c315d3fe5ff70d95e4b43995ca5ce83ea2c25779 100644
--- a/third_party/WebKit/Source/core/html/HTMLLinkElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.h
@@ -37,6 +37,7 @@
#include "core/loader/LinkLoaderClient.h"
#include "platform/WebTaskRunner.h"
#include "platform/bindings/TraceWrapperMember.h"
+#include "public/platform/modules/serviceworker/WebServiceWorkerUpdateViaCache.h"
namespace blink {
@@ -63,6 +64,9 @@ class CORE_EXPORT HTMLLinkElement final : public HTMLElement,
return static_cast<DOMTokenList&>(*rel_list_);
}
String Scope() const { return scope_; }
+ WebServiceWorkerUpdateViaCache UpdateViaCache() const {
+ return update_via_cache_;
+ }
const AtomicString& GetType() const;
@@ -150,6 +154,8 @@ class CORE_EXPORT HTMLLinkElement final : public HTMLElement,
void DidSendDOMContentLoadedForLinkPrerender() override;
RefPtr<WebTaskRunner> GetLoadingTaskRunner() override;
+ void ParseUpdateViaCacheAttribute();
+
Member<LinkResource> link_;
Member<LinkLoader> link_loader_;
@@ -162,6 +168,7 @@ class CORE_EXPORT HTMLLinkElement final : public HTMLElement,
TraceWrapperMember<RelList> rel_list_;
LinkRelAttribute rel_attribute_;
String scope_;
+ WebServiceWorkerUpdateViaCache update_via_cache_;
bool created_by_parser_;
};
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLAttributeNames.json5 ('k') | third_party/WebKit/Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698