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

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

Issue 2941883003: [ServiceWorker] Fetch event should return integrity value (Closed)
Patch Set: Rebase and address shimazu and yhirano's comments 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) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 fetch_credentials_mode_ = mode; 268 fetch_credentials_mode_ = mode;
269 } 269 }
270 270
271 WebURLRequest::FetchRedirectMode GetFetchRedirectMode() const { 271 WebURLRequest::FetchRedirectMode GetFetchRedirectMode() const {
272 return fetch_redirect_mode_; 272 return fetch_redirect_mode_;
273 } 273 }
274 void SetFetchRedirectMode(WebURLRequest::FetchRedirectMode redirect) { 274 void SetFetchRedirectMode(WebURLRequest::FetchRedirectMode redirect) {
275 fetch_redirect_mode_ = redirect; 275 fetch_redirect_mode_ = redirect;
276 } 276 }
277 277
278 const AtomicString& GetFetchIntegrity() const { return fetch_integrity_; }
279 void SetFetchIntegrity(const AtomicString& integrity) {
280 fetch_integrity_ = integrity;
281 }
282
278 WebURLRequest::PreviewsState GetPreviewsState() const { 283 WebURLRequest::PreviewsState GetPreviewsState() const {
279 return previews_state_; 284 return previews_state_;
280 } 285 }
281 void SetPreviewsState(WebURLRequest::PreviewsState previews_state) { 286 void SetPreviewsState(WebURLRequest::PreviewsState previews_state) {
282 previews_state_ = previews_state; 287 previews_state_ = previews_state;
283 } 288 }
284 289
285 bool CacheControlContainsNoCache() const; 290 bool CacheControlContainsNoCache() const;
286 bool CacheControlContainsNoStore() const; 291 bool CacheControlContainsNoStore() const;
287 bool HasCacheValidatorFields() const; 292 bool HasCacheValidatorFields() const;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 int requestor_id_; 362 int requestor_id_;
358 int requestor_process_id_; 363 int requestor_process_id_;
359 int app_cache_host_id_; 364 int app_cache_host_id_;
360 WebURLRequest::PreviewsState previews_state_; 365 WebURLRequest::PreviewsState previews_state_;
361 RefPtr<ExtraData> extra_data_; 366 RefPtr<ExtraData> extra_data_;
362 WebURLRequest::RequestContext request_context_; 367 WebURLRequest::RequestContext request_context_;
363 WebURLRequest::FrameType frame_type_; 368 WebURLRequest::FrameType frame_type_;
364 WebURLRequest::FetchRequestMode fetch_request_mode_; 369 WebURLRequest::FetchRequestMode fetch_request_mode_;
365 WebURLRequest::FetchCredentialsMode fetch_credentials_mode_; 370 WebURLRequest::FetchCredentialsMode fetch_credentials_mode_;
366 WebURLRequest::FetchRedirectMode fetch_redirect_mode_; 371 WebURLRequest::FetchRedirectMode fetch_redirect_mode_;
372 AtomicString fetch_integrity_;
367 ReferrerPolicy referrer_policy_; 373 ReferrerPolicy referrer_policy_;
368 bool did_set_http_referrer_; 374 bool did_set_http_referrer_;
369 bool check_for_browser_side_navigation_; 375 bool check_for_browser_side_navigation_;
370 double ui_start_time_; 376 double ui_start_time_;
371 bool is_external_request_; 377 bool is_external_request_;
372 WebURLRequest::LoadingIPCType loading_ipc_type_; 378 WebURLRequest::LoadingIPCType loading_ipc_type_;
373 bool is_same_document_navigation_; 379 bool is_same_document_navigation_;
374 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_; 380 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_;
375 RedirectStatus redirect_status_; 381 RedirectStatus redirect_status_;
376 382
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 ResourceLoadPriority priority_; 415 ResourceLoadPriority priority_;
410 int intra_priority_value_; 416 int intra_priority_value_;
411 int requestor_id_; 417 int requestor_id_;
412 int requestor_process_id_; 418 int requestor_process_id_;
413 int app_cache_host_id_; 419 int app_cache_host_id_;
414 WebURLRequest::RequestContext request_context_; 420 WebURLRequest::RequestContext request_context_;
415 WebURLRequest::FrameType frame_type_; 421 WebURLRequest::FrameType frame_type_;
416 WebURLRequest::FetchRequestMode fetch_request_mode_; 422 WebURLRequest::FetchRequestMode fetch_request_mode_;
417 WebURLRequest::FetchCredentialsMode fetch_credentials_mode_; 423 WebURLRequest::FetchCredentialsMode fetch_credentials_mode_;
418 WebURLRequest::FetchRedirectMode fetch_redirect_mode_; 424 WebURLRequest::FetchRedirectMode fetch_redirect_mode_;
425 AtomicString fetch_integrity_;
yhirano 2017/06/30 09:11:57 Please don't use AtomicString here. Please use Str
xiaofengzhang 2017/07/07 00:10:14 Done.
419 WebURLRequest::PreviewsState previews_state_; 426 WebURLRequest::PreviewsState previews_state_;
420 ReferrerPolicy referrer_policy_; 427 ReferrerPolicy referrer_policy_;
421 bool did_set_http_referrer_; 428 bool did_set_http_referrer_;
422 bool check_for_browser_side_navigation_; 429 bool check_for_browser_side_navigation_;
423 double ui_start_time_; 430 double ui_start_time_;
424 bool is_external_request_; 431 bool is_external_request_;
425 WebURLRequest::LoadingIPCType loading_ipc_type_; 432 WebURLRequest::LoadingIPCType loading_ipc_type_;
426 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_; 433 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_;
427 ResourceRequest::RedirectStatus redirect_status_; 434 ResourceRequest::RedirectStatus redirect_status_;
428 }; 435 };
429 436
430 } // namespace blink 437 } // namespace blink
431 438
432 #endif // ResourceRequest_h 439 #endif // ResourceRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698