| 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_AUTOMATION_MESSAGES_H__ | 5 // Multiply-included message file, no traditional include guard. |
| 6 #define CHROME_COMMON_AUTOMATION_MESSAGES_H__ | |
| 7 #pragma once | |
| 8 | |
| 9 #include <string> | 6 #include <string> |
| 10 | 7 |
| 11 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 12 #include "chrome/common/automation_constants.h" | 9 #include "chrome/common/automation_constants.h" |
| 13 #include "chrome/common/common_param_traits.h" | 10 #include "chrome/common/common_param_traits.h" |
| 14 #include "chrome/common/page_type.h" | 11 #include "chrome/common/page_type.h" |
| 15 #include "chrome/common/security_style.h" | 12 #include "chrome/common/security_style.h" |
| 16 #include "content/common/common_param_traits.h" | 13 #include "content/common/common_param_traits.h" |
| 14 #include "ipc/ipc_message_macros.h" |
| 15 #include "ipc/ipc_message_utils.h" |
| 17 #include "net/base/host_port_pair.h" | 16 #include "net/base/host_port_pair.h" |
| 18 #include "net/base/upload_data.h" | 17 #include "net/base/upload_data.h" |
| 19 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
| 20 | 19 |
| 20 // Singly-included section, not yet converted. |
| 21 #ifndef CHROME_COMMON_AUTOMATION_MESSAGES_H__ |
| 22 #define CHROME_COMMON_AUTOMATION_MESSAGES_H__ |
| 23 |
| 21 struct AutomationMsg_Find_Params { | 24 struct AutomationMsg_Find_Params { |
| 22 // Unused value, which exists only for backwards compat. | 25 // Unused value, which exists only for backwards compat. |
| 23 int unused; | 26 int unused; |
| 24 | 27 |
| 25 // The word(s) to find on the page. | 28 // The word(s) to find on the page. |
| 26 string16 search_string; | 29 string16 search_string; |
| 27 | 30 |
| 28 // Whether to search forward or backward within the page. | 31 // Whether to search forward or backward within the page. |
| 29 bool forward; | 32 bool forward; |
| 30 | 33 |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 template <> | 351 template <> |
| 349 struct ParamTraits<AttachExternalTabParams> { | 352 struct ParamTraits<AttachExternalTabParams> { |
| 350 typedef AttachExternalTabParams param_type; | 353 typedef AttachExternalTabParams param_type; |
| 351 static void Write(Message* m, const param_type& p); | 354 static void Write(Message* m, const param_type& p); |
| 352 static bool Read(const Message* m, void** iter, param_type* p); | 355 static bool Read(const Message* m, void** iter, param_type* p); |
| 353 static void Log(const param_type& p, std::string* l); | 356 static void Log(const param_type& p, std::string* l); |
| 354 }; | 357 }; |
| 355 | 358 |
| 356 } // namespace IPC | 359 } // namespace IPC |
| 357 | 360 |
| 361 #endif // CHROME_COMMON_AUTOMATION_MESSAGES_H__ |
| 362 |
| 363 // Keep this internal message file unchanged to preserve line numbering |
| 364 // (and hence the dubious __LINE__-based message numberings) across versions. |
| 358 #include "chrome/common/automation_messages_internal.h" | 365 #include "chrome/common/automation_messages_internal.h" |
| 359 | 366 |
| 360 #endif // CHROME_COMMON_AUTOMATION_MESSAGES_H__ | |
| OLD | NEW |