| Index: content/browser/plugin_process_host.cc
|
| diff --git a/content/browser/plugin_process_host.cc b/content/browser/plugin_process_host.cc
|
| index 23cac73d8e36c9333c7d9efa6f582dbae2f01755..b0d0f2cc4bbde200024c7dab408dd869a40c15f1 100644
|
| --- a/content/browser/plugin_process_host.cc
|
| +++ b/content/browser/plugin_process_host.cc
|
| @@ -32,6 +32,7 @@
|
| #include "content/public/browser/content_browser_client.h"
|
| #include "content/public/browser/notification_types.h"
|
| #include "content/public/browser/plugin_service.h"
|
| +#include "content/public/common/content_debug_logging.h"
|
| #include "content/public/common/content_switches.h"
|
| #include "content/public/common/process_type.h"
|
| #include "ipc/ipc_switches.h"
|
| @@ -333,6 +334,10 @@ bool PluginProcessHost::OnMessageReceived(const IPC::Message& msg) {
|
| IPC_MESSAGE_HANDLER(PluginProcessHostMsg_PluginSetCursorVisibility,
|
| OnPluginSetCursorVisibility)
|
| #endif
|
| + IPC_MESSAGE_HANDLER(PluginProcessHostMsg_ContentDebugRecordMsg,
|
| + OnContentDebugRecordMsg)
|
| + IPC_MESSAGE_HANDLER(PluginProcessHostMsg_ContentDebugGetMessages,
|
| + OnContentDebugGetMessages)
|
| IPC_MESSAGE_UNHANDLED(handled = false)
|
| IPC_END_MESSAGE_MAP()
|
|
|
| @@ -454,3 +459,14 @@ void PluginProcessHost::OnChannelCreated(
|
| client->OnChannelOpened(channel_handle);
|
| sent_requests_.pop_front();
|
| }
|
| +
|
| +// TODO(shess): Could this be annotated WRT the sending plugin?
|
| +void PluginProcessHost::OnContentDebugRecordMsg(int bug_id,
|
| + const std::string& msg) {
|
| + content::debug::RecordMsg(bug_id, msg);
|
| +}
|
| +
|
| +void PluginProcessHost::OnContentDebugGetMessages(
|
| + int bug_id, bool* handled, std::vector<std::string>* msgs) {
|
| + *handled = content::debug::GetMessages(bug_id, msgs);
|
| +}
|
|
|