3ae3233e65
* refactor: move mate::Event to gin * refactor: move mate::Locker to gin * refactor: convert contextBridge to gin * refactor: convert contentTracing to gin * refactor: remove callback converter of native_mate * refactor: remove file_dialog_converter and native_window_converter from native_mate * refactor: convert webFrame to gin * refactor: move blink_converter to gin * refactor: remove net_converter from native_mate * refactor: remove event_emitter_caller_deprecated * refactor: remove gurl_converter from native_mate * refactor: remove file_path and string16_converter from native_mate * refactor: remove image_converter from native_mate * refactor: move value_converter to gin
16 lines
422 B
C++
16 lines
422 B
C++
// Copyright 2014 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE.chromium file.
|
|
|
|
#include "shell/common/gin_helper/locker.h"
|
|
|
|
namespace gin_helper {
|
|
|
|
Locker::Locker(v8::Isolate* isolate) {
|
|
if (IsBrowserProcess())
|
|
locker_ = std::make_unique<v8::Locker>(isolate);
|
|
}
|
|
|
|
Locker::~Locker() = default;
|
|
|
|
} // namespace gin_helper
|