diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-23 01:00:55 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-23 01:00:55 +0000 |
commit | 59f4f2fa7a3a6509bb524ac93e4a821efe268d35 (patch) | |
tree | 5196fb43051b8983a1219a2cbdf4d1bb42d92629 /chrome/common/render_messages_params.cc | |
parent | 0ad9befd15a41b07123b4632ce6d37f02e31c9f2 (diff) | |
download | chromium_src-59f4f2fa7a3a6509bb524ac93e4a821efe268d35.zip chromium_src-59f4f2fa7a3a6509bb524ac93e4a821efe268d35.tar.gz chromium_src-59f4f2fa7a3a6509bb524ac93e4a821efe268d35.tar.bz2 |
Move the rest of the content browser->renderer messages to content. Also move drag related messages to their own file.
TBR=tsepez
Review URL: http://codereview.chromium.org/6705012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79083 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages_params.cc')
-rw-r--r-- | chrome/common/render_messages_params.cc | 104 |
1 files changed, 0 insertions, 104 deletions
diff --git a/chrome/common/render_messages_params.cc b/chrome/common/render_messages_params.cc index 84c00c9..4a60180 100644 --- a/chrome/common/render_messages_params.cc +++ b/chrome/common/render_messages_params.cc @@ -35,17 +35,6 @@ ViewHostMsg_UpdateRect_Params::ViewHostMsg_UpdateRect_Params() ViewHostMsg_UpdateRect_Params::~ViewHostMsg_UpdateRect_Params() { } -ViewMsg_ClosePage_Params::ViewMsg_ClosePage_Params() - : closing_process_id(0), - closing_route_id(0), - for_cross_site_transition(false), - new_render_process_host_id(0), - new_request_id(0) { -} - -ViewMsg_ClosePage_Params::~ViewMsg_ClosePage_Params() { -} - ViewMsg_Print_Params::ViewMsg_Print_Params() : margin_top(0), margin_left(0), @@ -158,18 +147,6 @@ ViewMsg_ExecuteCode_Params::ViewMsg_ExecuteCode_Params( ViewMsg_ExecuteCode_Params::~ViewMsg_ExecuteCode_Params() { } -ViewHostMsg_CreateWorker_Params::ViewHostMsg_CreateWorker_Params() - : is_shared(false), - document_id(0), - render_view_route_id(0), - route_id(0), - parent_appcache_host_id(0), - script_resource_appcache_id(0) { -} - -ViewHostMsg_CreateWorker_Params::~ViewHostMsg_CreateWorker_Params() { -} - ViewHostMsg_CreateWindow_Params::ViewHostMsg_CreateWindow_Params() : opener_id(0), user_gesture(false), @@ -588,40 +565,6 @@ void ParamTraits<ViewHostMsg_UpdateRect_Params>::Log(const param_type& p, l->append(")"); } -void ParamTraits<ViewMsg_ClosePage_Params>::Write(Message* m, - const param_type& p) { - WriteParam(m, p.closing_process_id); - WriteParam(m, p.closing_route_id); - WriteParam(m, p.for_cross_site_transition); - WriteParam(m, p.new_render_process_host_id); - WriteParam(m, p.new_request_id); -} - -bool ParamTraits<ViewMsg_ClosePage_Params>::Read(const Message* m, - void** iter, - param_type* r) { - return ReadParam(m, iter, &r->closing_process_id) && - ReadParam(m, iter, &r->closing_route_id) && - ReadParam(m, iter, &r->for_cross_site_transition) && - ReadParam(m, iter, &r->new_render_process_host_id) && - ReadParam(m, iter, &r->new_request_id); -} - -void ParamTraits<ViewMsg_ClosePage_Params>::Log(const param_type& p, - std::string* l) { - l->append("("); - LogParam(p.closing_process_id, l); - l->append(", "); - LogParam(p.closing_route_id, l); - l->append(", "); - LogParam(p.for_cross_site_transition, l); - l->append(", "); - LogParam(p.new_render_process_host_id, l); - l->append(", "); - LogParam(p.new_request_id, l); - l->append(")"); -} - void ParamTraits<ViewMsg_Print_Params>::Write(Message* m, const param_type& p) { WriteParam(m, p.page_size); WriteParam(m, p.printable_size); @@ -809,53 +752,6 @@ void ParamTraits<ViewMsg_ExecuteCode_Params>::Log(const param_type& p, l->append("<ViewMsg_ExecuteCode_Params>"); } -void ParamTraits<ViewHostMsg_CreateWorker_Params>::Write(Message* m, - const param_type& p) { - WriteParam(m, p.url); - WriteParam(m, p.is_shared); - WriteParam(m, p.name); - WriteParam(m, p.document_id); - WriteParam(m, p.render_view_route_id); - WriteParam(m, p.route_id); - WriteParam(m, p.parent_appcache_host_id); - WriteParam(m, p.script_resource_appcache_id); -} - -bool ParamTraits<ViewHostMsg_CreateWorker_Params>::Read(const Message* m, - void** iter, - param_type* p) { - return - ReadParam(m, iter, &p->url) && - ReadParam(m, iter, &p->is_shared) && - ReadParam(m, iter, &p->name) && - ReadParam(m, iter, &p->document_id) && - ReadParam(m, iter, &p->render_view_route_id) && - ReadParam(m, iter, &p->route_id) && - ReadParam(m, iter, &p->parent_appcache_host_id) && - ReadParam(m, iter, &p->script_resource_appcache_id); -} - -void ParamTraits<ViewHostMsg_CreateWorker_Params>::Log(const param_type& p, - std::string* l) { - l->append("("); - LogParam(p.url, l); - l->append(", "); - LogParam(p.is_shared, l); - l->append(", "); - LogParam(p.name, l); - l->append(", "); - LogParam(p.document_id, l); - l->append(", "); - LogParam(p.render_view_route_id, l); - l->append(","); - LogParam(p.route_id, l); - l->append(", "); - LogParam(p.parent_appcache_host_id, l); - l->append(","); - LogParam(p.script_resource_appcache_id, l); - l->append(")"); -} - void ParamTraits<ViewHostMsg_CreateWindow_Params>::Write(Message* m, const param_type& p) { WriteParam(m, p.opener_id); |