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

Unified Diff: chrome/common/render_messages_params.cc

Issue 1403001: Modifying the "dangerous download" algorithm. (Closed)
Patch Set: Adding .sys and .drv as Dangerous extensions Created 10 years 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 | « chrome/common/render_messages_params.h ('k') | chrome/common/resource_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages_params.cc
diff --git a/chrome/common/render_messages_params.cc b/chrome/common/render_messages_params.cc
index b7a090980aa03765be6c20d2eed37174fe19c0a1..ad5b75b62023a421f92ce5c7369f444519da3f3b 100644
--- a/chrome/common/render_messages_params.cc
+++ b/chrome/common/render_messages_params.cc
@@ -66,6 +66,7 @@ ViewHostMsg_Resource_Request::ViewHostMsg_Resource_Request()
request_context(0),
appcache_host_id(0),
download_to_file(false),
+ has_user_gesture(false),
host_renderer_id(0),
host_render_view_id(0) {
}
@@ -938,6 +939,7 @@ void ParamTraits<ViewHostMsg_Resource_Request>::Write(Message* m,
WriteParam(m, p.appcache_host_id);
WriteParam(m, p.upload_data);
WriteParam(m, p.download_to_file);
+ WriteParam(m, p.has_user_gesture);
WriteParam(m, p.host_renderer_id);
WriteParam(m, p.host_render_view_id);
}
@@ -960,6 +962,7 @@ bool ParamTraits<ViewHostMsg_Resource_Request>::Read(const Message* m,
ReadParam(m, iter, &r->appcache_host_id) &&
ReadParam(m, iter, &r->upload_data) &&
ReadParam(m, iter, &r->download_to_file) &&
+ ReadParam(m, iter, &r->has_user_gesture) &&
ReadParam(m, iter, &r->host_renderer_id) &&
ReadParam(m, iter, &r->host_render_view_id);
}
@@ -989,6 +992,8 @@ void ParamTraits<ViewHostMsg_Resource_Request>::Log(const param_type& p,
l->append(", ");
LogParam(p.download_to_file, l);
l->append(", ");
+ LogParam(p.has_user_gesture, l);
+ l->append(", ");
LogParam(p.host_renderer_id, l);
l->append(", ");
LogParam(p.host_render_view_id, l);
« no previous file with comments | « chrome/common/render_messages_params.h ('k') | chrome/common/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698