summaryrefslogtreecommitdiffstats
path: root/webkit/port/bindings/v8
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-26 21:48:32 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-26 21:48:32 +0000
commitf816c01e9c6f6f0365ba80ba3f661e38461a0537 (patch)
tree1f3cd0fdfd2951c10c164c41f8bd209e14c3fc0a /webkit/port/bindings/v8
parent49a415c979692c045b25eb4c3e0369a83b5316e6 (diff)
downloadchromium_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.cpp3
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();
}