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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h

Issue 2941883003: [ServiceWorker] Fetch event should return integrity value (Closed)
Patch Set: Address yhirano's comment #78 Created 3 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/platform/loader/fetch/ResourceRequest.h
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h b/third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h
index 49a7bc7caeaccce35361d3e11dadeade4114a83e..d00169fef9332b22048bc8ce1c46fa535d603e7f 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h
@@ -275,6 +275,11 @@ class PLATFORM_EXPORT ResourceRequest final {
fetch_redirect_mode_ = redirect;
}
+ const String& GetFetchIntegrity() const { return fetch_integrity_; }
+ void SetFetchIntegrity(const String& integrity) {
+ fetch_integrity_ = integrity;
+ }
+
WebURLRequest::PreviewsState GetPreviewsState() const {
return previews_state_;
}
@@ -364,6 +369,7 @@ class PLATFORM_EXPORT ResourceRequest final {
WebURLRequest::FetchRequestMode fetch_request_mode_;
WebURLRequest::FetchCredentialsMode fetch_credentials_mode_;
WebURLRequest::FetchRedirectMode fetch_redirect_mode_;
+ String fetch_integrity_;
ReferrerPolicy referrer_policy_;
bool did_set_http_referrer_;
bool check_for_browser_side_navigation_;
@@ -416,6 +422,7 @@ struct CrossThreadResourceRequestData {
WebURLRequest::FetchRequestMode fetch_request_mode_;
WebURLRequest::FetchCredentialsMode fetch_credentials_mode_;
WebURLRequest::FetchRedirectMode fetch_redirect_mode_;
+ String fetch_integrity_;
WebURLRequest::PreviewsState previews_state_;
ReferrerPolicy referrer_policy_;
bool did_set_http_referrer_;

Powered by Google App Engine
This is Rietveld 408576698