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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h b/third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h
index a3e1fdf2fda4c53efb4a232bb5522623063e0e2f..9964ecd163ef4b6d471181dbb12189e3d91acf1d 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h
@@ -299,6 +299,13 @@ class PLATFORM_EXPORT ResourceRequest final {
bool IsExternalRequest() const { return is_external_request_; }
void SetExternalRequestStateFromRequestorAddressSpace(WebAddressSpace);
+ void OverrideLoadingIPCType(WebURLRequest::LoadingIPCType loading_ipc_type) {
+ loading_ipc_type_ = loading_ipc_type;
+ }
+ WebURLRequest::LoadingIPCType GetLoadingIPCType() const {
+ return loading_ipc_type_;
+ }
+
InputToLoadPerfMetricReportPolicy InputPerfMetricReportPolicy() const {
return input_perf_metric_report_policy_;
}
@@ -358,6 +365,7 @@ class PLATFORM_EXPORT ResourceRequest final {
bool check_for_browser_side_navigation_;
double ui_start_time_;
bool is_external_request_;
+ WebURLRequest::LoadingIPCType loading_ipc_type_;
bool is_same_document_navigation_;
InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_;
@@ -410,6 +418,7 @@ struct CrossThreadResourceRequestData {
bool check_for_browser_side_navigation_;
double ui_start_time_;
bool is_external_request_;
+ WebURLRequest::LoadingIPCType loading_ipc_type_;
InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_;
ResourceRequest::RedirectStatus redirect_status_;
};

Powered by Google App Engine
This is Rietveld 408576698