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

Unified Diff: content/child/npapi/plugin_url_fetcher.cc

Issue 182383015: Merge weburlrequest_extradata_impl.cc/h into content/child/request_extra_data.cc/h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 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 | « no previous file | content/child/request_extra_data.h » ('j') | content/child/resource_dispatcher_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/npapi/plugin_url_fetcher.cc
diff --git a/content/child/npapi/plugin_url_fetcher.cc b/content/child/npapi/plugin_url_fetcher.cc
index 2a5c46b1846165697647de8ea58b0e3211934015..9b6e78cc918b2d283506e022104e2280184cde62 100644
--- a/content/child/npapi/plugin_url_fetcher.cc
+++ b/content/child/npapi/plugin_url_fetcher.cc
@@ -107,22 +107,22 @@ PluginURLFetcher::PluginURLFetcher(PluginStreamUrl* plugin_stream,
request_info.request_type = ResourceType::OBJECT;
request_info.routing_id = render_view_id;
- RequestExtraData extra_data(blink::WebPageVisibilityStateVisible,
- base::string16(),
- false,
- render_frame_id,
- false,
- GURL(),
- false,
- -1,
- true,
- PAGE_TRANSITION_LINK,
- false,
- -1,
- -1,
- kInvalidServiceWorkerProviderId);
-
- request_info.extra_data = &extra_data;
+ RequestExtraData* extra_data = new RequestExtraData();
+ extra_data->set_visibility_state(blink::WebPageVisibilityStateVisible);
+ extra_data->set_custom_user_agent(base::string16());
+ extra_data->set_was_after_preconnect_request(false);
+ extra_data->set_render_frame_id(render_frame_id);
+ extra_data->set_is_main_frame(false);
+ extra_data->set_frame_origin(GURL());
+ extra_data->set_parent_is_main_frame(false);
+ extra_data->set_parent_render_frame_id(-1);
+ extra_data->set_allow_download(true);
+ extra_data->set_transition_type(PAGE_TRANSITION_LINK);
+ extra_data->set_should_replace_current_entry(false);
+ extra_data->set_transferred_request_child_id(-1);
+ extra_data->set_transferred_request_request_id(-1);
+ extra_data->set_service_worker_provider_id(kInvalidServiceWorkerProviderId);
+ request_info.extra_data = extra_data;
std::vector<char> body;
if (method == "POST") {
« no previous file with comments | « no previous file | content/child/request_extra_data.h » ('j') | content/child/resource_dispatcher_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698