diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 21:48:32 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 21:48:32 +0000 |
commit | f816c01e9c6f6f0365ba80ba3f661e38461a0537 (patch) | |
tree | 1f3cd0fdfd2951c10c164c41f8bd209e14c3fc0a /webkit/port/bindings/v8 | |
parent | 49a415c979692c045b25eb4c3e0369a83b5316e6 (diff) | |
download | chromium_src-f816c01e9c6f6f0365ba80ba3f661e38461a0537.zip chromium_src-f816c01e9c6f6f0365ba80ba3f661e38461a0537.tar.gz chromium_src-f816c01e9c6f6f0365ba80ba3f661e38461a0537.tar.bz2 |
Add notifications for when V8Proxy creates or destroys a V8 Context.
BUG=no
TEST=no
Review URL: http://codereview.chromium.org/147124
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19424 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/bindings/v8')
-rw-r--r-- | webkit/port/bindings/v8/v8_proxy.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/port/bindings/v8/v8_proxy.cpp b/webkit/port/bindings/v8/v8_proxy.cpp index d11ee18..e1f23ef 100644 --- a/webkit/port/bindings/v8/v8_proxy.cpp +++ b/webkit/port/bindings/v8/v8_proxy.cpp @@ -45,6 +45,7 @@ #include "CSSMutableStyleDeclaration.h" #include "DOMObjectsInclude.h" #include "DocumentLoader.h" +#include "FrameLoaderClient.h" #include "ScriptController.h" #include "V8CustomBinding.h" #include "V8DOMMap.h" @@ -1931,6 +1932,7 @@ void V8Proxy::ClearDocumentWrapperCache() void V8Proxy::DisposeContextHandles() { if (!m_context.IsEmpty()) { + m_frame->loader()->client()->didDestroyScriptContext(); m_context.Dispose(); m_context.Clear(); } @@ -2334,6 +2336,7 @@ void V8Proxy::InitContextIfNeeded() SetSecurityToken(); + m_frame->loader()->client()->didCreateScriptContext(); m_frame->loader()->dispatchWindowObjectAvailable(); } |