blob: 1d6bad35bbb16f56b972cd6586baf8644513253b [file] [log] [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import BrowserEngineKit
import ExtensionFoundation
import Foundation
@main
class ContentProcess: NSObject, ChildProcessExtension, WebContentExtension {
override required init() {
super.init()
ChildProcessStarted()
ChildProcessInit(self)
}
public func handle(xpcConnection: xpc_connection_t) {
ChildProcessHandleNewConnection(xpcConnection)
}
public func applySandbox() {
self.applyRestrictedSandbox(revision: .revision1)
}
}