diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-12 23:57:18 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-12 23:57:18 +0000 |
commit | 2f7f4d591192cfdebee227b72e3cf57c7c604450 (patch) | |
tree | 181fc0fc257b6203c3ca2affb33f4b143de5fd3c /chrome/renderer/devtools_agent.cc | |
parent | 5a8459aa45b09a6cdcdd90ca190ba353799e3464 (diff) | |
download | chromium_src-2f7f4d591192cfdebee227b72e3cf57c7c604450.zip chromium_src-2f7f4d591192cfdebee227b72e3cf57c7c604450.tar.gz chromium_src-2f7f4d591192cfdebee227b72e3cf57c7c604450.tar.bz2 |
Enables the sending of Timeline Agent and Resource messages to the devtools api in extensions.
Review URL: http://codereview.chromium.org/267013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28761 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/devtools_agent.cc')
-rw-r--r-- | chrome/renderer/devtools_agent.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/renderer/devtools_agent.cc b/chrome/renderer/devtools_agent.cc index 74af788..aa6baad3 100644 --- a/chrome/renderer/devtools_agent.cc +++ b/chrome/renderer/devtools_agent.cc @@ -37,6 +37,8 @@ bool DevToolsAgent::OnMessageReceived(const IPC::Message& message) { IPC_MESSAGE_HANDLER(DevToolsAgentMsg_Detach, OnDetach) IPC_MESSAGE_HANDLER(DevToolsAgentMsg_RpcMessage, OnRpcMessage) IPC_MESSAGE_HANDLER(DevToolsAgentMsg_InspectElement, OnInspectElement) + IPC_MESSAGE_HANDLER(DevToolsAgentMsg_SetApuAgentEnabled, + OnSetApuAgentEnabled) IPC_MESSAGE_UNHANDLED(handled = false) IPC_END_MESSAGE_MAP() return handled; @@ -106,6 +108,13 @@ void DevToolsAgent::OnInspectElement(int x, int y) { } } +void DevToolsAgent::OnSetApuAgentEnabled(bool enabled) { + WebDevToolsAgent* web_agent = GetWebAgent(); + if (web_agent) { + web_agent->SetApuAgentEnabled(enabled); + } +} + WebDevToolsAgent* DevToolsAgent::GetWebAgent() { WebView* web_view = view_->webview(); if (!web_view) |