diff options
author | ager@google.com <ager@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-07 19:29:29 +0000 |
---|---|---|
committer | ager@google.com <ager@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-07 19:29:29 +0000 |
commit | a0889edfabc7e231af01f6044f0d2d6c684c1493 (patch) | |
tree | 781ffe453ba68f173a626540dfa73e53a8fa9e96 /webkit/port/bindings/v8/v8_custom.h | |
parent | 6e4dea5b594cdd042b087ae4fc6343ab63d4af3c (diff) | |
download | chromium_src-a0889edfabc7e231af01f6044f0d2d6c684c1493.zip chromium_src-a0889edfabc7e231af01f6044f0d2d6c684c1493.tar.gz chromium_src-a0889edfabc7e231af01f6044f0d2d6c684c1493.tar.bz2 |
Keep MessagePort wrappers alive for the life-time of the corresponding
MessageChannel.
I create the MessagePort wrappers when a MessageChannel is constructed
and put references to them in internal fields in the MessageChannel.
This is a fix for
http://code.google.com/p/chromium/issues/detail?id=4195
Review URL: http://codereview.chromium.org/9508
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5006 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/bindings/v8/v8_custom.h')
-rw-r--r-- | webkit/port/bindings/v8/v8_custom.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/port/bindings/v8/v8_custom.h b/webkit/port/bindings/v8/v8_custom.h index 6ce3239..d3bee4c 100644 --- a/webkit/port/bindings/v8/v8_custom.h +++ b/webkit/port/bindings/v8/v8_custom.h @@ -54,6 +54,13 @@ class V8Custom { static const int kXMLHttpRequestInternalFieldCount = kDefaultWrapperInternalFieldCount + 1; + static const int kMessageChannelPort1Index = + kDefaultWrapperInternalFieldCount + 0; + static const int kMessageChannelPort2Index = + kDefaultWrapperInternalFieldCount + 1; + static const int kMessageChannelInternalFieldCount = + kDefaultWrapperInternalFieldCount + 2; + static const int kMessagePortRequestCacheIndex = kDefaultWrapperInternalFieldCount + 0; static const int kMessagePortInternalFieldCount = |