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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/FetchRequestData.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/fetch/FetchRequestData.h" 5 #include "modules/fetch/FetchRequestData.h"
6 6
7 #include "core/dom/ExecutionContext.h" 7 #include "core/dom/ExecutionContext.h"
8 #include "core/loader/ThreadableLoader.h" 8 #include "core/loader/ThreadableLoader.h"
9 #include "modules/credentialmanager/PasswordCredential.h" 9 #include "modules/credentialmanager/PasswordCredential.h"
10 #include "modules/fetch/BlobBytesConsumer.h" 10 #include "modules/fetch/BlobBytesConsumer.h"
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 request->SetContext(web_request.GetRequestContext()); 42 request->SetContext(web_request.GetRequestContext());
43 request->SetReferrer( 43 request->SetReferrer(
44 Referrer(web_request.ReferrerUrl().GetString(), 44 Referrer(web_request.ReferrerUrl().GetString(),
45 static_cast<ReferrerPolicy>(web_request.GetReferrerPolicy()))); 45 static_cast<ReferrerPolicy>(web_request.GetReferrerPolicy())));
46 request->SetMode(web_request.Mode()); 46 request->SetMode(web_request.Mode());
47 request->SetCredentials(web_request.CredentialsMode()); 47 request->SetCredentials(web_request.CredentialsMode());
48 request->SetCacheMode(web_request.CacheMode()); 48 request->SetCacheMode(web_request.CacheMode());
49 request->SetRedirect(web_request.RedirectMode()); 49 request->SetRedirect(web_request.RedirectMode());
50 request->SetMIMEType(request->header_list_->ExtractMIMEType()); 50 request->SetMIMEType(request->header_list_->ExtractMIMEType());
51 request->SetIntegrity(web_request.Integrity());
51 return request; 52 return request;
52 } 53 }
53 54
54 FetchRequestData* FetchRequestData::CloneExceptBody() { 55 FetchRequestData* FetchRequestData::CloneExceptBody() {
55 FetchRequestData* request = FetchRequestData::Create(); 56 FetchRequestData* request = FetchRequestData::Create();
56 request->url_ = url_; 57 request->url_ = url_;
57 request->method_ = method_; 58 request->method_ = method_;
58 request->header_list_ = header_list_->Clone(); 59 request->header_list_ = header_list_->Clone();
59 request->unsafe_request_flag_ = unsafe_request_flag_; 60 request->unsafe_request_flag_ = unsafe_request_flag_;
60 request->origin_ = origin_; 61 request->origin_ = origin_;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 if (credentials_ != WebURLRequest::kFetchCredentialsModePassword) 116 if (credentials_ != WebURLRequest::kFetchCredentialsModePassword)
116 attached_credential_.Clear(); 117 attached_credential_.Clear();
117 } 118 }
118 119
119 DEFINE_TRACE(FetchRequestData) { 120 DEFINE_TRACE(FetchRequestData) {
120 visitor->Trace(buffer_); 121 visitor->Trace(buffer_);
121 visitor->Trace(header_list_); 122 visitor->Trace(header_list_);
122 } 123 }
123 124
124 } // namespace blink 125 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/LinkStyle.cpp ('k') | third_party/WebKit/Source/modules/fetch/Request.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698