| 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 #ifndef CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
| 6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 913 | 913 |
| 914 // Type of notification. | 914 // Type of notification. |
| 915 NotificationType notification_type; | 915 NotificationType notification_type; |
| 916 | 916 |
| 917 // The accessibility node tree. | 917 // The accessibility node tree. |
| 918 webkit_glue::WebAccessibility acc_obj; | 918 webkit_glue::WebAccessibility acc_obj; |
| 919 }; | 919 }; |
| 920 | 920 |
| 921 // A node is essentially a frame. | 921 // A node is essentially a frame. |
| 922 struct ViewHostMsg_MalwareDOMDetails_Node { | 922 struct ViewHostMsg_MalwareDOMDetails_Node { |
| 923 ViewHostMsg_MalwareDOMDetails_Node(); |
| 924 ~ViewHostMsg_MalwareDOMDetails_Node(); |
| 925 |
| 923 // URL of this resource. Can be empty. | 926 // URL of this resource. Can be empty. |
| 924 GURL url; | 927 GURL url; |
| 925 | 928 |
| 926 // If this resource was in the "src" attribute of a tag, this is the tagname | 929 // If this resource was in the "src" attribute of a tag, this is the tagname |
| 927 // (eg "IFRAME"). Can be empty. | 930 // (eg "IFRAME"). Can be empty. |
| 928 std::string tag_name; | 931 std::string tag_name; |
| 929 | 932 |
| 930 // URL of the parent node. Can be empty. | 933 // URL of the parent node. Can be empty. |
| 931 GURL parent; | 934 GURL parent; |
| 932 | 935 |
| 933 // children of this node. Can be emtpy. | 936 // children of this node. Can be emtpy. |
| 934 std::vector<GURL> children; | 937 std::vector<GURL> children; |
| 935 }; | 938 }; |
| 936 | 939 |
| 937 // Parameters to describe interesting details from a rendered page that lead | 940 // Parameters to describe interesting details from a rendered page that lead |
| 938 // to a malware warning. | 941 // to a malware warning. |
| 939 struct ViewHostMsg_MalwareDOMDetails_Params { | 942 struct ViewHostMsg_MalwareDOMDetails_Params { |
| 943 ViewHostMsg_MalwareDOMDetails_Params(); |
| 944 ~ViewHostMsg_MalwareDOMDetails_Params(); |
| 945 |
| 940 // All the nodes we extracted. | 946 // All the nodes we extracted. |
| 941 std::vector<ViewHostMsg_MalwareDOMDetails_Node> nodes; | 947 std::vector<ViewHostMsg_MalwareDOMDetails_Node> nodes; |
| 942 }; | 948 }; |
| 943 | 949 |
| 944 | 950 |
| 945 namespace IPC { | 951 namespace IPC { |
| 946 | 952 |
| 947 class Message; | 953 class Message; |
| 948 | 954 |
| 949 // Traits for ViewMsg_Navigate_Params structure to pack/unpack. | 955 // Traits for ViewMsg_Navigate_Params structure to pack/unpack. |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1183 struct ParamTraits<ViewHostMsg_MalwareDOMDetails_Node> { | 1189 struct ParamTraits<ViewHostMsg_MalwareDOMDetails_Node> { |
| 1184 typedef ViewHostMsg_MalwareDOMDetails_Node param_type; | 1190 typedef ViewHostMsg_MalwareDOMDetails_Node param_type; |
| 1185 static void Write(Message* m, const param_type& p); | 1191 static void Write(Message* m, const param_type& p); |
| 1186 static bool Read(const Message* m, void** iter, param_type* p); | 1192 static bool Read(const Message* m, void** iter, param_type* p); |
| 1187 static void Log(const param_type& p, std::string* l); | 1193 static void Log(const param_type& p, std::string* l); |
| 1188 }; | 1194 }; |
| 1189 | 1195 |
| 1190 } // namespace IPC | 1196 } // namespace IPC |
| 1191 | 1197 |
| 1192 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 1198 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
| OLD | NEW |