OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/render_messages_params.h" | 5 #include "chrome/common/render_messages_params.h" |
6 | 6 |
7 #include "chrome/common/navigation_gesture.h" | 7 #include "chrome/common/navigation_gesture.h" |
8 #include "chrome/common/common_param_traits.h" | 8 #include "chrome/common/common_param_traits.h" |
9 #include "chrome/common/extensions/extension_constants.h" | 9 #include "chrome/common/extensions/extension_constants.h" |
10 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 ViewMsg_Navigate_Params::~ViewMsg_Navigate_Params() { | 22 ViewMsg_Navigate_Params::~ViewMsg_Navigate_Params() { |
23 } | 23 } |
24 | 24 |
25 ViewHostMsg_FrameNavigate_Params::ViewHostMsg_FrameNavigate_Params() | 25 ViewHostMsg_FrameNavigate_Params::ViewHostMsg_FrameNavigate_Params() |
26 : page_id(0), | 26 : page_id(0), |
27 frame_id(0), | 27 frame_id(0), |
28 transition(PageTransition::TYPED), | 28 transition(PageTransition::TYPED), |
29 should_update_history(false), | 29 should_update_history(false), |
30 gesture(NavigationGestureUser), | 30 gesture(NavigationGestureUser), |
31 is_post(false), | 31 is_post(false), |
32 is_content_filtered(false), | |
33 was_within_same_page(false), | 32 was_within_same_page(false), |
34 http_status_code(0), | 33 http_status_code(0), |
35 was_fetched_via_proxy(false) { | 34 was_fetched_via_proxy(false) { |
36 } | 35 } |
37 | 36 |
38 ViewHostMsg_FrameNavigate_Params::~ViewHostMsg_FrameNavigate_Params() { | 37 ViewHostMsg_FrameNavigate_Params::~ViewHostMsg_FrameNavigate_Params() { |
39 } | 38 } |
40 | 39 |
41 ViewHostMsg_UpdateRect_Params::ViewHostMsg_UpdateRect_Params() | 40 ViewHostMsg_UpdateRect_Params::ViewHostMsg_UpdateRect_Params() |
42 : dx(0), | 41 : dx(0), |
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 WriteParam(m, p.transition); | 762 WriteParam(m, p.transition); |
764 WriteParam(m, p.redirects); | 763 WriteParam(m, p.redirects); |
765 WriteParam(m, p.should_update_history); | 764 WriteParam(m, p.should_update_history); |
766 WriteParam(m, p.searchable_form_url); | 765 WriteParam(m, p.searchable_form_url); |
767 WriteParam(m, p.searchable_form_encoding); | 766 WriteParam(m, p.searchable_form_encoding); |
768 WriteParam(m, p.password_form); | 767 WriteParam(m, p.password_form); |
769 WriteParam(m, p.security_info); | 768 WriteParam(m, p.security_info); |
770 WriteParam(m, p.gesture); | 769 WriteParam(m, p.gesture); |
771 WriteParam(m, p.contents_mime_type); | 770 WriteParam(m, p.contents_mime_type); |
772 WriteParam(m, p.is_post); | 771 WriteParam(m, p.is_post); |
773 WriteParam(m, p.is_content_filtered); | |
774 WriteParam(m, p.was_within_same_page); | 772 WriteParam(m, p.was_within_same_page); |
775 WriteParam(m, p.http_status_code); | 773 WriteParam(m, p.http_status_code); |
776 WriteParam(m, p.socket_address); | 774 WriteParam(m, p.socket_address); |
777 WriteParam(m, p.was_fetched_via_proxy); | 775 WriteParam(m, p.was_fetched_via_proxy); |
778 WriteParam(m, p.content_state); | 776 WriteParam(m, p.content_state); |
779 } | 777 } |
780 | 778 |
781 bool ParamTraits<ViewHostMsg_FrameNavigate_Params>::Read(const Message* m, | 779 bool ParamTraits<ViewHostMsg_FrameNavigate_Params>::Read(const Message* m, |
782 void** iter, | 780 void** iter, |
783 param_type* p) { | 781 param_type* p) { |
784 return | 782 return |
785 ReadParam(m, iter, &p->page_id) && | 783 ReadParam(m, iter, &p->page_id) && |
786 ReadParam(m, iter, &p->frame_id) && | 784 ReadParam(m, iter, &p->frame_id) && |
787 ReadParam(m, iter, &p->url) && | 785 ReadParam(m, iter, &p->url) && |
788 ReadParam(m, iter, &p->referrer) && | 786 ReadParam(m, iter, &p->referrer) && |
789 ReadParam(m, iter, &p->transition) && | 787 ReadParam(m, iter, &p->transition) && |
790 ReadParam(m, iter, &p->redirects) && | 788 ReadParam(m, iter, &p->redirects) && |
791 ReadParam(m, iter, &p->should_update_history) && | 789 ReadParam(m, iter, &p->should_update_history) && |
792 ReadParam(m, iter, &p->searchable_form_url) && | 790 ReadParam(m, iter, &p->searchable_form_url) && |
793 ReadParam(m, iter, &p->searchable_form_encoding) && | 791 ReadParam(m, iter, &p->searchable_form_encoding) && |
794 ReadParam(m, iter, &p->password_form) && | 792 ReadParam(m, iter, &p->password_form) && |
795 ReadParam(m, iter, &p->security_info) && | 793 ReadParam(m, iter, &p->security_info) && |
796 ReadParam(m, iter, &p->gesture) && | 794 ReadParam(m, iter, &p->gesture) && |
797 ReadParam(m, iter, &p->contents_mime_type) && | 795 ReadParam(m, iter, &p->contents_mime_type) && |
798 ReadParam(m, iter, &p->is_post) && | 796 ReadParam(m, iter, &p->is_post) && |
799 ReadParam(m, iter, &p->is_content_filtered) && | |
800 ReadParam(m, iter, &p->was_within_same_page) && | 797 ReadParam(m, iter, &p->was_within_same_page) && |
801 ReadParam(m, iter, &p->http_status_code) && | 798 ReadParam(m, iter, &p->http_status_code) && |
802 ReadParam(m, iter, &p->socket_address) && | 799 ReadParam(m, iter, &p->socket_address) && |
803 ReadParam(m, iter, &p->was_fetched_via_proxy) && | 800 ReadParam(m, iter, &p->was_fetched_via_proxy) && |
804 ReadParam(m, iter, &p->content_state); | 801 ReadParam(m, iter, &p->content_state); |
805 } | 802 } |
806 | 803 |
807 void ParamTraits<ViewHostMsg_FrameNavigate_Params>::Log(const param_type& p, | 804 void ParamTraits<ViewHostMsg_FrameNavigate_Params>::Log(const param_type& p, |
808 std::string* l) { | 805 std::string* l) { |
809 l->append("("); | 806 l->append("("); |
(...skipping 18 matching lines...) Expand all Loading... |
828 LogParam(p.password_form, l); | 825 LogParam(p.password_form, l); |
829 l->append(", "); | 826 l->append(", "); |
830 LogParam(p.security_info, l); | 827 LogParam(p.security_info, l); |
831 l->append(", "); | 828 l->append(", "); |
832 LogParam(p.gesture, l); | 829 LogParam(p.gesture, l); |
833 l->append(", "); | 830 l->append(", "); |
834 LogParam(p.contents_mime_type, l); | 831 LogParam(p.contents_mime_type, l); |
835 l->append(", "); | 832 l->append(", "); |
836 LogParam(p.is_post, l); | 833 LogParam(p.is_post, l); |
837 l->append(", "); | 834 l->append(", "); |
838 LogParam(p.is_content_filtered, l); | |
839 l->append(", "); | |
840 LogParam(p.was_within_same_page, l); | 835 LogParam(p.was_within_same_page, l); |
841 l->append(", "); | 836 l->append(", "); |
842 LogParam(p.http_status_code, l); | 837 LogParam(p.http_status_code, l); |
843 l->append(", "); | 838 l->append(", "); |
844 LogParam(p.socket_address, l); | 839 LogParam(p.socket_address, l); |
845 l->append(", "); | 840 l->append(", "); |
846 LogParam(p.was_fetched_via_proxy, l); | 841 LogParam(p.was_fetched_via_proxy, l); |
847 l->append(")"); | 842 l->append(")"); |
848 } | 843 } |
849 | 844 |
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1715 l->append(", "); | 1710 l->append(", "); |
1716 LogParam(p.tag_name, l); | 1711 LogParam(p.tag_name, l); |
1717 l->append(", "); | 1712 l->append(", "); |
1718 LogParam(p.parent, l); | 1713 LogParam(p.parent, l); |
1719 l->append(", "); | 1714 l->append(", "); |
1720 LogParam(p.children, l); | 1715 LogParam(p.children, l); |
1721 l->append(")"); | 1716 l->append(")"); |
1722 } | 1717 } |
1723 | 1718 |
1724 } // namespace IPC | 1719 } // namespace IPC |
OLD | NEW |