Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: webkit/port/bindings/v8/v8_proxy.cpp

Issue 147124: Add notifications for when V8Proxy creates or destroys a V8 Context. (Closed)
Patch Set: roll deps Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/webview_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/port/bindings/v8/v8_proxy.cpp
diff --git a/webkit/port/bindings/v8/v8_proxy.cpp b/webkit/port/bindings/v8/v8_proxy.cpp
index d11ee18fa40cb1e9c3b08ba5e52078e2f96c6a8f..e1f23ef57d7b928613b21bfccaa25d9638e6aa29 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();
}
« no previous file with comments | « webkit/glue/webview_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698