From 7f12ca7b059791737dff605b261fb290e51801a8 Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Fri, 28 Feb 2014 22:11:53 +0000 Subject: 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 --- gin/per_context_data.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gin/per_context_data.cc') 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 context) - : runner_(NULL) { +PerContextData::PerContextData(ContextHolder* context_holder, + v8::Handle context) + : context_holder_(context_holder), + runner_(NULL) { context->SetAlignedPointerInEmbedderData( kPerContextDataStartIndex + kEmbedderNativeGin, this); } -- cgit v1.1