mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-06 05:53:54 +01:00
Add CefV8ContextHandler::OnUncaughtException callback (issue #736).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@894 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
e599cc1fab
commit
f18f7fd27f
@ -32,7 +32,6 @@ void CefRenderMessageFilter::OnFilterRemoved() {
|
|||||||
bool CefRenderMessageFilter::OnMessageReceived(const IPC::Message& message) {
|
bool CefRenderMessageFilter::OnMessageReceived(const IPC::Message& message) {
|
||||||
bool handled = true;
|
bool handled = true;
|
||||||
if (message.type() == DevToolsAgentMsg_Attach::ID ||
|
if (message.type() == DevToolsAgentMsg_Attach::ID ||
|
||||||
message.type() == DevToolsAgentMsg_Reattach::ID ||
|
|
||||||
message.type() == DevToolsAgentMsg_Detach::ID) {
|
message.type() == DevToolsAgentMsg_Detach::ID) {
|
||||||
// Observe the DevTools messages but don't handle them.
|
// Observe the DevTools messages but don't handle them.
|
||||||
handled = false;
|
handled = false;
|
||||||
@ -40,7 +39,6 @@ bool CefRenderMessageFilter::OnMessageReceived(const IPC::Message& message) {
|
|||||||
|
|
||||||
IPC_BEGIN_MESSAGE_MAP(CefRenderMessageFilter, message)
|
IPC_BEGIN_MESSAGE_MAP(CefRenderMessageFilter, message)
|
||||||
IPC_MESSAGE_HANDLER(DevToolsAgentMsg_Attach, OnDevToolsAgentAttach)
|
IPC_MESSAGE_HANDLER(DevToolsAgentMsg_Attach, OnDevToolsAgentAttach)
|
||||||
IPC_MESSAGE_HANDLER(DevToolsAgentMsg_Reattach, OnDevToolsAgentReattach)
|
|
||||||
IPC_MESSAGE_HANDLER(DevToolsAgentMsg_Detach, OnDevToolsAgentDetach)
|
IPC_MESSAGE_HANDLER(DevToolsAgentMsg_Detach, OnDevToolsAgentDetach)
|
||||||
IPC_MESSAGE_UNHANDLED(handled = false)
|
IPC_MESSAGE_UNHANDLED(handled = false)
|
||||||
IPC_END_MESSAGE_MAP()
|
IPC_END_MESSAGE_MAP()
|
||||||
@ -52,12 +50,6 @@ void CefRenderMessageFilter::OnDevToolsAgentAttach() {
|
|||||||
base::Bind(&CefRenderMessageFilter::OnDevToolsAgentAttach_RT, this));
|
base::Bind(&CefRenderMessageFilter::OnDevToolsAgentAttach_RT, this));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CefRenderMessageFilter::OnDevToolsAgentReattach(
|
|
||||||
const std::string& agent_state) {
|
|
||||||
// Treat reattach the same as attach.
|
|
||||||
OnDevToolsAgentAttach();
|
|
||||||
}
|
|
||||||
|
|
||||||
void CefRenderMessageFilter::OnDevToolsAgentDetach() {
|
void CefRenderMessageFilter::OnDevToolsAgentDetach() {
|
||||||
// CefContentRendererClient::DevToolsAgentDetached() needs to be called after
|
// CefContentRendererClient::DevToolsAgentDetached() needs to be called after
|
||||||
// the IPC message has been handled by DevToolsAgent. A workaround for this is
|
// the IPC message has been handled by DevToolsAgent. A workaround for this is
|
||||||
|
@ -23,7 +23,6 @@ class CefRenderMessageFilter : public IPC::ChannelProxy::MessageFilter {
|
|||||||
private:
|
private:
|
||||||
// Message handlers called on the IO thread.
|
// Message handlers called on the IO thread.
|
||||||
void OnDevToolsAgentAttach();
|
void OnDevToolsAgentAttach();
|
||||||
void OnDevToolsAgentReattach(const std::string& agent_state);
|
|
||||||
void OnDevToolsAgentDetach();
|
void OnDevToolsAgentDetach();
|
||||||
|
|
||||||
void OnDevToolsAgentAttach_RT();
|
void OnDevToolsAgentAttach_RT();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user