diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-07 17:01:28 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-07 17:01:28 +0000 |
commit | 0c882b2856e5851765ce89f63d337902a3e6b823 (patch) | |
tree | 1f691120230073bc5999f8a249b1ee38bebd6f59 /webkit/api | |
parent | 6ad4d363216093052720febaf67545187d6f9997 (diff) | |
download | chromium_src-0c882b2856e5851765ce89f63d337902a3e6b823.zip chromium_src-0c882b2856e5851765ce89f63d337902a3e6b823.tar.gz chromium_src-0c882b2856e5851765ce89f63d337902a3e6b823.tar.bz2 |
Invent WebFrameImpl::ClientHandle as a weak reference to WebFrameClient.
Unfortunately, I can't use base::WeakPtr for this since this code will all move
into webkit/api shortly.
R=dglazkov
BUG=10034
TEST=none
Review URL: http://codereview.chromium.org/263007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28267 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/api')
-rw-r--r-- | webkit/api/public/WebFrameClient.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/webkit/api/public/WebFrameClient.h b/webkit/api/public/WebFrameClient.h index 6ef6e2d..24701e5 100644 --- a/webkit/api/public/WebFrameClient.h +++ b/webkit/api/public/WebFrameClient.h @@ -215,6 +215,18 @@ namespace WebKit { // Script in the page tried to allocate too much memory. virtual void didExhaustMemoryAvailableForScript(WebFrame*) = 0; + // Notifies that a new script context has been created for this frame. + // This is similar to didClearWindowObject but only called once per + // frame context. + virtual void didCreateScriptContext(WebFrame*) = 0; + + // Notifies that this frame's script context has been destroyed. + virtual void didDestroyScriptContext(WebFrame*) = 0; + + // Notifies that a garbage-collected context was created - content + // scripts. + virtual void didCreateIsolatedScriptContext(WebFrame*) = 0; + // Geometry notifications ---------------------------------------------- |