[email protected] | a22998a | 2013-11-10 05:00:50 | [diff] [blame] | 1 | // Copyright 2013 The Chromium Authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style license that can be | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #include "gin/runner.h" | ||||
6 | |||||
[email protected] | a22998a | 2013-11-10 05:00:50 | [diff] [blame] | 7 | namespace gin { |
8 | |||||
[email protected] | 1771610d | 2014-02-27 06:08:24 | [diff] [blame] | 9 | Runner::Runner() : weak_factory_(this) { |
[email protected] | a22998a | 2013-11-10 05:00:50 | [diff] [blame] | 10 | } |
11 | |||||
12 | Runner::~Runner() { | ||||
[email protected] | 97f21ca | 2013-11-17 17:46:07 | [diff] [blame] | 13 | } |
14 | |||||
[email protected] | a22998a | 2013-11-10 05:00:50 | [diff] [blame] | 15 | Runner::Scope::Scope(Runner* runner) |
[email protected] | 1771610d | 2014-02-27 06:08:24 | [diff] [blame] | 16 | : isolate_scope_(runner->GetContextHolder()->isolate()), |
17 | handle_scope_(runner->GetContextHolder()->isolate()), | ||||
18 | scope_(runner->GetContextHolder()->context()) { | ||||
[email protected] | a22998a | 2013-11-10 05:00:50 | [diff] [blame] | 19 | } |
20 | |||||
21 | Runner::Scope::~Scope() { | ||||
22 | } | ||||
23 | |||||
24 | } // namespace gin |