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

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.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 /* 1 /*
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 SetShouldResetAppCache(data->should_reset_app_cache_); 107 SetShouldResetAppCache(data->should_reset_app_cache_);
108 SetRequestorID(data->requestor_id_); 108 SetRequestorID(data->requestor_id_);
109 SetRequestorProcessID(data->requestor_process_id_); 109 SetRequestorProcessID(data->requestor_process_id_);
110 SetAppCacheHostID(data->app_cache_host_id_); 110 SetAppCacheHostID(data->app_cache_host_id_);
111 SetPreviewsState(data->previews_state_); 111 SetPreviewsState(data->previews_state_);
112 SetRequestContext(data->request_context_); 112 SetRequestContext(data->request_context_);
113 SetFrameType(data->frame_type_); 113 SetFrameType(data->frame_type_);
114 SetFetchRequestMode(data->fetch_request_mode_); 114 SetFetchRequestMode(data->fetch_request_mode_);
115 SetFetchCredentialsMode(data->fetch_credentials_mode_); 115 SetFetchCredentialsMode(data->fetch_credentials_mode_);
116 SetFetchRedirectMode(data->fetch_redirect_mode_); 116 SetFetchRedirectMode(data->fetch_redirect_mode_);
117 SetFetchIntegrity(data->fetch_integrity_.IsolatedCopy());
117 referrer_policy_ = data->referrer_policy_; 118 referrer_policy_ = data->referrer_policy_;
118 did_set_http_referrer_ = data->did_set_http_referrer_; 119 did_set_http_referrer_ = data->did_set_http_referrer_;
119 check_for_browser_side_navigation_ = data->check_for_browser_side_navigation_; 120 check_for_browser_side_navigation_ = data->check_for_browser_side_navigation_;
120 ui_start_time_ = data->ui_start_time_; 121 ui_start_time_ = data->ui_start_time_;
121 is_external_request_ = data->is_external_request_; 122 is_external_request_ = data->is_external_request_;
122 loading_ipc_type_ = data->loading_ipc_type_; 123 loading_ipc_type_ = data->loading_ipc_type_;
123 input_perf_metric_report_policy_ = data->input_perf_metric_report_policy_; 124 input_perf_metric_report_policy_ = data->input_perf_metric_report_policy_;
124 redirect_status_ = data->redirect_status_; 125 redirect_status_ = data->redirect_status_;
125 } 126 }
126 127
(...skipping 30 matching lines...) Expand all
157 data->should_reset_app_cache_ = should_reset_app_cache_; 158 data->should_reset_app_cache_ = should_reset_app_cache_;
158 data->requestor_id_ = requestor_id_; 159 data->requestor_id_ = requestor_id_;
159 data->requestor_process_id_ = requestor_process_id_; 160 data->requestor_process_id_ = requestor_process_id_;
160 data->app_cache_host_id_ = app_cache_host_id_; 161 data->app_cache_host_id_ = app_cache_host_id_;
161 data->previews_state_ = previews_state_; 162 data->previews_state_ = previews_state_;
162 data->request_context_ = request_context_; 163 data->request_context_ = request_context_;
163 data->frame_type_ = frame_type_; 164 data->frame_type_ = frame_type_;
164 data->fetch_request_mode_ = fetch_request_mode_; 165 data->fetch_request_mode_ = fetch_request_mode_;
165 data->fetch_credentials_mode_ = fetch_credentials_mode_; 166 data->fetch_credentials_mode_ = fetch_credentials_mode_;
166 data->fetch_redirect_mode_ = fetch_redirect_mode_; 167 data->fetch_redirect_mode_ = fetch_redirect_mode_;
168 data->fetch_integrity_ = fetch_integrity_.IsolatedCopy();
167 data->referrer_policy_ = referrer_policy_; 169 data->referrer_policy_ = referrer_policy_;
168 data->did_set_http_referrer_ = did_set_http_referrer_; 170 data->did_set_http_referrer_ = did_set_http_referrer_;
169 data->check_for_browser_side_navigation_ = check_for_browser_side_navigation_; 171 data->check_for_browser_side_navigation_ = check_for_browser_side_navigation_;
170 data->ui_start_time_ = ui_start_time_; 172 data->ui_start_time_ = ui_start_time_;
171 data->is_external_request_ = is_external_request_; 173 data->is_external_request_ = is_external_request_;
172 data->loading_ipc_type_ = loading_ipc_type_; 174 data->loading_ipc_type_ = loading_ipc_type_;
173 data->input_perf_metric_report_policy_ = input_perf_metric_report_policy_; 175 data->input_perf_metric_report_policy_ = input_perf_metric_report_policy_;
174 data->redirect_status_ = redirect_status_; 176 data->redirect_status_ = redirect_status_;
175 return data; 177 return data;
176 } 178 }
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 // layer. 428 // layer.
427 if (HttpMethod() == HTTPNames::GET || HttpMethod() == HTTPNames::HEAD) 429 if (HttpMethod() == HTTPNames::GET || HttpMethod() == HTTPNames::HEAD)
428 return false; 430 return false;
429 431
430 // For non-GET and non-HEAD methods, always send an Origin header so the 432 // For non-GET and non-HEAD methods, always send an Origin header so the
431 // server knows we support this feature. 433 // server knows we support this feature.
432 return true; 434 return true;
433 } 435 }
434 436
435 } // namespace blink 437 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698