Avi Drissman | 468e51b6 | 2022-09-13 20:47:01 | [diff] [blame] | 1 | // Copyright 2013 The Chromium Authors |
abarth@chromium.org | a22998a | 2013-11-10 05:00:50 | [diff] [blame] | 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 | |
abarth@chromium.org | a22998a | 2013-11-10 05:00:50 | [diff] [blame] | 7 | namespace gin { |
| 8 | |
Jeremy Roman | 7c5cfabd | 2019-08-12 15:45:27 | [diff] [blame] | 9 | Runner::Runner() {} |
abarth@chromium.org | a22998a | 2013-11-10 05:00:50 | [diff] [blame] | 10 | |
Chris Watkins | 756035a | 2017-12-01 03:03:27 | [diff] [blame] | 11 | Runner::~Runner() = default; |
abarth@chromium.org | 97f21ca | 2013-11-17 17:46:07 | [diff] [blame] | 12 | |
abarth@chromium.org | a22998a | 2013-11-10 05:00:50 | [diff] [blame] | 13 | Runner::Scope::Scope(Runner* runner) |
sky@chromium.org | 1771610d | 2014-02-27 06:08:24 | [diff] [blame] | 14 | : isolate_scope_(runner->GetContextHolder()->isolate()), |
| 15 | handle_scope_(runner->GetContextHolder()->isolate()), |
| 16 | scope_(runner->GetContextHolder()->context()) { |
abarth@chromium.org | a22998a | 2013-11-10 05:00:50 | [diff] [blame] | 17 | } |
| 18 | |
Chris Watkins | 756035a | 2017-12-01 03:03:27 | [diff] [blame] | 19 | Runner::Scope::~Scope() = default; |
abarth@chromium.org | a22998a | 2013-11-10 05:00:50 | [diff] [blame] | 20 | |
| 21 | } // namespace gin |