| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Multiply-included message file, no traditional include guard. | 5 // Multiply-included message file, no traditional include guard. |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "chrome/common/automation_constants.h" | 11 #include "chrome/common/automation_constants.h" |
| 12 #include "chrome/common/automation_events.h" | |
| 13 #include "chrome/common/common_param_traits.h" | 12 #include "chrome/common/common_param_traits.h" |
| 14 #include "chrome/common/content_settings.h" | 13 #include "chrome/common/content_settings.h" |
| 15 #include "content/public/common/common_param_traits.h" | 14 #include "content/public/common/common_param_traits.h" |
| 16 #include "content/public/common/page_type.h" | 15 #include "content/public/common/page_type.h" |
| 17 #include "content/public/common/security_style.h" | 16 #include "content/public/common/security_style.h" |
| 18 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
| 19 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
| 20 #include "ipc/ipc_message_utils.h" | 19 #include "ipc/ipc_message_utils.h" |
| 21 #include "net/cert/cert_status_flags.h" | 20 #include "net/cert/cert_status_flags.h" |
| 22 #include "net/base/host_port_pair.h" | 21 #include "net/base/host_port_pair.h" |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 IPC_STRUCT_BEGIN(AutomationURLRequest) | 142 IPC_STRUCT_BEGIN(AutomationURLRequest) |
| 144 IPC_STRUCT_MEMBER(std::string, url) | 143 IPC_STRUCT_MEMBER(std::string, url) |
| 145 IPC_STRUCT_MEMBER(std::string, method) | 144 IPC_STRUCT_MEMBER(std::string, method) |
| 146 IPC_STRUCT_MEMBER(std::string, referrer) | 145 IPC_STRUCT_MEMBER(std::string, referrer) |
| 147 IPC_STRUCT_MEMBER(std::string, extra_request_headers) | 146 IPC_STRUCT_MEMBER(std::string, extra_request_headers) |
| 148 IPC_STRUCT_MEMBER(scoped_refptr<net::UploadData>, upload_data) | 147 IPC_STRUCT_MEMBER(scoped_refptr<net::UploadData>, upload_data) |
| 149 IPC_STRUCT_MEMBER(int, resource_type) // see webkit/glue/resource_type.h | 148 IPC_STRUCT_MEMBER(int, resource_type) // see webkit/glue/resource_type.h |
| 150 IPC_STRUCT_MEMBER(int, load_flags) // see net/base/load_flags.h | 149 IPC_STRUCT_MEMBER(int, load_flags) // see net/base/load_flags.h |
| 151 IPC_STRUCT_END() | 150 IPC_STRUCT_END() |
| 152 | 151 |
| 153 IPC_STRUCT_TRAITS_BEGIN(ScriptEvaluationRequest) | |
| 154 IPC_STRUCT_TRAITS_MEMBER(script) | |
| 155 IPC_STRUCT_TRAITS_MEMBER(frame_xpath) | |
| 156 IPC_STRUCT_TRAITS_END() | |
| 157 | |
| 158 // Singly-included section for struct and custom IPC traits. | 152 // Singly-included section for struct and custom IPC traits. |
| 159 #ifndef CHROME_COMMON_AUTOMATION_MESSAGES_H_ | 153 #ifndef CHROME_COMMON_AUTOMATION_MESSAGES_H_ |
| 160 #define CHROME_COMMON_AUTOMATION_MESSAGES_H_ | 154 #define CHROME_COMMON_AUTOMATION_MESSAGES_H_ |
| 161 | 155 |
| 162 // This struct passes information about the context menu in Chrome stored | 156 // This struct passes information about the context menu in Chrome stored |
| 163 // as a ui::MenuModel to Chrome Frame. It is basically a container of | 157 // as a ui::MenuModel to Chrome Frame. It is basically a container of |
| 164 // items that go in the menu. An item may be a submenu, so the data | 158 // items that go in the menu. An item may be a submenu, so the data |
| 165 // structure may be a tree. | 159 // structure may be a tree. |
| 166 struct ContextMenuModel { | 160 struct ContextMenuModel { |
| 167 ContextMenuModel(); | 161 ContextMenuModel(); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 191 ContextMenuModel* submenu; | 185 ContextMenuModel* submenu; |
| 192 }; | 186 }; |
| 193 | 187 |
| 194 // This is the list of menu items. | 188 // This is the list of menu items. |
| 195 std::vector<Item> items; | 189 std::vector<Item> items; |
| 196 }; | 190 }; |
| 197 | 191 |
| 198 namespace IPC { | 192 namespace IPC { |
| 199 | 193 |
| 200 template <> | 194 template <> |
| 201 struct ParamTraits<AutomationMouseEvent> { | |
| 202 typedef AutomationMouseEvent param_type; | |
| 203 static void Write(Message* m, const param_type& p); | |
| 204 static bool Read(const Message* m, PickleIterator* iter, param_type* p); | |
| 205 static void Log(const param_type& p, std::string* l); | |
| 206 }; | |
| 207 | |
| 208 template <> | |
| 209 struct ParamTraits<ContextMenuModel> { | 195 struct ParamTraits<ContextMenuModel> { |
| 210 typedef ContextMenuModel param_type; | 196 typedef ContextMenuModel param_type; |
| 211 static void Write(Message* m, const param_type& p); | 197 static void Write(Message* m, const param_type& p); |
| 212 static bool Read(const Message* m, PickleIterator* iter, param_type* p); | 198 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
| 213 static void Log(const param_type& p, std::string* l); | 199 static void Log(const param_type& p, std::string* l); |
| 214 }; | 200 }; |
| 215 | 201 |
| 216 template <> | 202 template <> |
| 217 struct ParamTraits<scoped_refptr<net::UploadData> > { | 203 struct ParamTraits<scoped_refptr<net::UploadData> > { |
| 218 typedef scoped_refptr<net::UploadData> param_type; | 204 typedef scoped_refptr<net::UploadData> param_type; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 229 static void Log(const param_type& p, std::string* l); | 215 static void Log(const param_type& p, std::string* l); |
| 230 }; | 216 }; |
| 231 | 217 |
| 232 } // namespace IPC | 218 } // namespace IPC |
| 233 | 219 |
| 234 #endif // CHROME_COMMON_AUTOMATION_MESSAGES_H_ | 220 #endif // CHROME_COMMON_AUTOMATION_MESSAGES_H_ |
| 235 | 221 |
| 236 // Keep this internal message file unchanged to preserve line numbering | 222 // Keep this internal message file unchanged to preserve line numbering |
| 237 // (and hence the dubious __LINE__-based message numberings) across versions. | 223 // (and hence the dubious __LINE__-based message numberings) across versions. |
| 238 #include "chrome/common/automation_messages_internal.h" | 224 #include "chrome/common/automation_messages_internal.h" |
| OLD | NEW |