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

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

Issue 2880733002: Partially implement WorkerFetchContext and WorkerThreadableLoadingContext and add virtual tests (Closed)
Patch Set: incorporated kinuko's comment Created 3 years, 7 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 292
293 double UiStartTime() const { return ui_start_time_; } 293 double UiStartTime() const { return ui_start_time_; }
294 void SetUIStartTime(double ui_start_time_seconds) { 294 void SetUIStartTime(double ui_start_time_seconds) {
295 ui_start_time_ = ui_start_time_seconds; 295 ui_start_time_ = ui_start_time_seconds;
296 } 296 }
297 297
298 // https://mikewest.github.io/cors-rfc1918/#external-request 298 // https://mikewest.github.io/cors-rfc1918/#external-request
299 bool IsExternalRequest() const { return is_external_request_; } 299 bool IsExternalRequest() const { return is_external_request_; }
300 void SetExternalRequestStateFromRequestorAddressSpace(WebAddressSpace); 300 void SetExternalRequestStateFromRequestorAddressSpace(WebAddressSpace);
301 301
302 void OverrideLoadingIPCType(WebURLRequest::LoadingIPCType loading_ipc_type) {
303 loading_ipc_type_ = loading_ipc_type;
304 }
305 WebURLRequest::LoadingIPCType GetLoadingIPCType() const {
306 return loading_ipc_type_;
307 }
308
302 InputToLoadPerfMetricReportPolicy InputPerfMetricReportPolicy() const { 309 InputToLoadPerfMetricReportPolicy InputPerfMetricReportPolicy() const {
303 return input_perf_metric_report_policy_; 310 return input_perf_metric_report_policy_;
304 } 311 }
305 void SetInputPerfMetricReportPolicy( 312 void SetInputPerfMetricReportPolicy(
306 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy) { 313 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy) {
307 input_perf_metric_report_policy_ = input_perf_metric_report_policy; 314 input_perf_metric_report_policy_ = input_perf_metric_report_policy;
308 } 315 }
309 316
310 void SetRedirectStatus(RedirectStatus status) { redirect_status_ = status; } 317 void SetRedirectStatus(RedirectStatus status) { redirect_status_ = status; }
311 RedirectStatus GetRedirectStatus() const { return redirect_status_; } 318 RedirectStatus GetRedirectStatus() const { return redirect_status_; }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 WebURLRequest::FrameType frame_type_; 358 WebURLRequest::FrameType frame_type_;
352 WebURLRequest::FetchRequestMode fetch_request_mode_; 359 WebURLRequest::FetchRequestMode fetch_request_mode_;
353 WebURLRequest::FetchCredentialsMode fetch_credentials_mode_; 360 WebURLRequest::FetchCredentialsMode fetch_credentials_mode_;
354 WebURLRequest::FetchRedirectMode fetch_redirect_mode_; 361 WebURLRequest::FetchRedirectMode fetch_redirect_mode_;
355 WebURLRequest::PreviewsState previews_state_; 362 WebURLRequest::PreviewsState previews_state_;
356 ReferrerPolicy referrer_policy_; 363 ReferrerPolicy referrer_policy_;
357 bool did_set_http_referrer_; 364 bool did_set_http_referrer_;
358 bool check_for_browser_side_navigation_; 365 bool check_for_browser_side_navigation_;
359 double ui_start_time_; 366 double ui_start_time_;
360 bool is_external_request_; 367 bool is_external_request_;
368 WebURLRequest::LoadingIPCType loading_ipc_type_;
361 bool is_same_document_navigation_; 369 bool is_same_document_navigation_;
362 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_; 370 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_;
363 371
364 mutable CacheControlHeader cache_control_header_cache_; 372 mutable CacheControlHeader cache_control_header_cache_;
365 373
366 static double default_timeout_interval_; 374 static double default_timeout_interval_;
367 375
368 RedirectStatus redirect_status_; 376 RedirectStatus redirect_status_;
369 377
370 double navigation_start_ = 0; 378 double navigation_start_ = 0;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 WebURLRequest::FrameType frame_type_; 411 WebURLRequest::FrameType frame_type_;
404 WebURLRequest::FetchRequestMode fetch_request_mode_; 412 WebURLRequest::FetchRequestMode fetch_request_mode_;
405 WebURLRequest::FetchCredentialsMode fetch_credentials_mode_; 413 WebURLRequest::FetchCredentialsMode fetch_credentials_mode_;
406 WebURLRequest::FetchRedirectMode fetch_redirect_mode_; 414 WebURLRequest::FetchRedirectMode fetch_redirect_mode_;
407 WebURLRequest::PreviewsState previews_state_; 415 WebURLRequest::PreviewsState previews_state_;
408 ReferrerPolicy referrer_policy_; 416 ReferrerPolicy referrer_policy_;
409 bool did_set_http_referrer_; 417 bool did_set_http_referrer_;
410 bool check_for_browser_side_navigation_; 418 bool check_for_browser_side_navigation_;
411 double ui_start_time_; 419 double ui_start_time_;
412 bool is_external_request_; 420 bool is_external_request_;
421 WebURLRequest::LoadingIPCType loading_ipc_type_;
413 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_; 422 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_;
414 ResourceRequest::RedirectStatus redirect_status_; 423 ResourceRequest::RedirectStatus redirect_status_;
415 }; 424 };
416 425
417 } // namespace blink 426 } // namespace blink
418 427
419 #endif // ResourceRequest_h 428 #endif // ResourceRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698