diff options
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/automation/automation_messages_internal.h | 6 | ||||
-rw-r--r-- | chrome/test/automation/tab_proxy.cc | 10 | ||||
-rw-r--r-- | chrome/test/automation/tab_proxy.h | 6 |
3 files changed, 12 insertions, 10 deletions
diff --git a/chrome/test/automation/automation_messages_internal.h b/chrome/test/automation/automation_messages_internal.h index 9c029c4..d05f82e 100644 --- a/chrome/test/automation/automation_messages_internal.h +++ b/chrome/test/automation/automation_messages_internal.h @@ -737,8 +737,8 @@ IPC_BEGIN_MESSAGES(Automation, 0) IPC_MESSAGE_ROUTED1(AutomationMsg_OpenFindInPageRequest, int /* tab_handle */) - // Posts a message to the chrome renderer. - IPC_MESSAGE_ROUTED3(AutomationMsg_PostMessage, + // Posts a message from external host to chrome renderer. + IPC_MESSAGE_ROUTED3(AutomationMsg_HandleMessageFromExternalHost, int /* automation handle */, std::string /* target */, std::string /* message */ ) @@ -746,7 +746,7 @@ IPC_BEGIN_MESSAGES(Automation, 0) // A message for an external host. // |receiver| can be a receiving script and |message| is any // arbitrary string that makes sense to the receiver. - IPC_MESSAGE_ROUTED2(AutomationMsg_SendExternalHostMessage, + IPC_MESSAGE_ROUTED2(AutomationMsg_ForwardMessageToExternalHost, std::string /* receiver*/, std::string /* message*/) diff --git a/chrome/test/automation/tab_proxy.cc b/chrome/test/automation/tab_proxy.cc index 6171ddb..7c82b5c 100644 --- a/chrome/test/automation/tab_proxy.cc +++ b/chrome/test/automation/tab_proxy.cc @@ -929,13 +929,15 @@ bool TabProxy::SavePage(const std::wstring& file_name, return succeeded; } -void TabProxy::PostMessage(AutomationHandle handle, - const std::string& target, - const std::string& message) { +void TabProxy::HandleMessageFromExternalHost(AutomationHandle handle, + const std::string& target, + const std::string& message) { if (!is_valid()) return; bool succeeded = - sender_->Send(new AutomationMsg_PostMessage(0, handle, target, message)); + sender_->Send(new AutomationMsg_HandleMessageFromExternalHost(0, handle, + target, + message)); DCHECK(succeeded); } diff --git a/chrome/test/automation/tab_proxy.h b/chrome/test/automation/tab_proxy.h index 24f2cb3..bbb96d0 100644 --- a/chrome/test/automation/tab_proxy.h +++ b/chrome/test/automation/tab_proxy.h @@ -266,9 +266,9 @@ class TabProxy : public AutomationResourceProxy { SavePackage::SavePackageType type); // Posts a message to the external tab. - void PostMessage(AutomationHandle handle, - const std::string& target, - const std::string& message); + void HandleMessageFromExternalHost(AutomationHandle handle, + const std::string& target, + const std::string& message); private: DISALLOW_EVIL_CONSTRUCTORS(TabProxy); |