summaryrefslogtreecommitdiffstats
path: root/gin/per_context_data.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-28 22:11:53 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-28 22:11:53 +0000
commit7f12ca7b059791737dff605b261fb290e51801a8 (patch)
tree7f2e4999cd30c50c1460f4d5ffb86d11d58f281b /gin/per_context_data.cc
parent90cc2a9a56c8070be766ea99628913c48aee59bb (diff)
downloadchromium_src-7f12ca7b059791737dff605b261fb290e51801a8.zip
chromium_src-7f12ca7b059791737dff605b261fb290e51801a8.tar.gz
chromium_src-7f12ca7b059791737dff605b261fb290e51801a8.tar.bz2
Adds PerContextData::context_holder()
I need this as WebKit creates the ContextHolder and I need a handle to it. BUG=none TEST=none R=abarth@chromium.org Review URL: https://codereview.chromium.org/184013002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254250 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin/per_context_data.cc')
-rw-r--r--gin/per_context_data.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gin/per_context_data.cc b/gin/per_context_data.cc
index 3960528..b10c1a0 100644
--- a/gin/per_context_data.cc
+++ b/gin/per_context_data.cc
@@ -10,8 +10,10 @@
namespace gin {
-PerContextData::PerContextData(v8::Handle<v8::Context> context)
- : runner_(NULL) {
+PerContextData::PerContextData(ContextHolder* context_holder,
+ v8::Handle<v8::Context> context)
+ : context_holder_(context_holder),
+ runner_(NULL) {
context->SetAlignedPointerInEmbedderData(
kPerContextDataStartIndex + kEmbedderNativeGin, this);
}