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

Unified Diff: third_party/WebKit/Source/platform/exported/WebServiceWorkerRequest.cpp

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/exported/WebServiceWorkerRequest.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebServiceWorkerRequest.cpp b/third_party/WebKit/Source/platform/exported/WebServiceWorkerRequest.cpp
index 42b655ff8c6de644c0fe80f2ee70bae93546f4f5..c4469a213e18ddd7a1402406e9920c570fc353ea 100644
--- a/third_party/WebKit/Source/platform/exported/WebServiceWorkerRequest.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebServiceWorkerRequest.cpp
@@ -38,6 +38,7 @@ class WebServiceWorkerRequestPrivate
WebURLRequest::FetchRedirectMode redirect_mode_;
WebURLRequest::RequestContext request_context_;
WebURLRequest::FrameType frame_type_;
+ WebString integrity_;
WebString client_id_;
bool is_reload_;
};
@@ -57,6 +58,10 @@ void WebServiceWorkerRequest::SetURL(const WebURL& url) {
private_->url_ = url;
}
+const WebString& WebServiceWorkerRequest::Integrity() const {
+ return private_->integrity_;
+}
+
const WebURL& WebServiceWorkerRequest::Url() const {
return private_->url_;
}
@@ -151,6 +156,10 @@ void WebServiceWorkerRequest::SetCredentialsMode(
private_->credentials_mode_ = credentials_mode;
}
+void WebServiceWorkerRequest::SetIntegrity(const WebString& integrity) {
+ private_->integrity_ = integrity;
+}
+
WebURLRequest::FetchCredentialsMode WebServiceWorkerRequest::CredentialsMode()
const {
return private_->credentials_mode_;
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Request.cpp ('k') | third_party/WebKit/Source/platform/exported/WebURLRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698