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

Unified Diff: content/child/request_extra_data.cc

Issue 2345253002: Remove content::RequestInfo (Closed)
Patch Set: Rebase Created 4 years, 3 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
« no previous file with comments | « content/child/request_extra_data.h ('k') | content/child/request_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/request_extra_data.cc
diff --git a/content/child/request_extra_data.cc b/content/child/request_extra_data.cc
index 006d8502ce5d356f5b497781b27174e5c8459823..1b5ea2e1e264625ac5d147018f4c5fafba27ba23 100644
--- a/content/child/request_extra_data.cc
+++ b/content/child/request_extra_data.cc
@@ -4,6 +4,7 @@
#include "content/child/request_extra_data.h"
+#include "content/common/resource_request.h"
#include "content/common/service_worker/service_worker_types.h"
#include "ipc/ipc_message.h"
@@ -31,4 +32,23 @@ RequestExtraData::RequestExtraData()
RequestExtraData::~RequestExtraData() {
}
+void RequestExtraData::CopyToResourceRequest(ResourceRequest* request) const {
+ request->visibility_state = visibility_state_;
+ request->render_frame_id = render_frame_id_;
+ request->is_main_frame = is_main_frame_;
+
+ request->parent_is_main_frame = parent_is_main_frame_;
+ request->parent_render_frame_id = parent_render_frame_id_;
+ request->allow_download = allow_download_;
+ request->transition_type = transition_type_;
+ request->should_replace_current_entry = should_replace_current_entry_;
+ request->transferred_request_child_id = transferred_request_child_id_;
+ request->transferred_request_request_id = transferred_request_request_id_;
+ request->service_worker_provider_id = service_worker_provider_id_;
+ request->originated_from_service_worker = originated_from_service_worker_;
+
+ request->initiated_in_secure_context = initiated_in_secure_context_;
+ request->download_to_network_cache_only = download_to_network_cache_only_;
+}
+
} // namespace content
« no previous file with comments | « content/child/request_extra_data.h ('k') | content/child/request_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698