blob: d9f734f6f83a0d41d35f19c52917ad4fe0ef4a7c [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361// Copyright 2014 The Chromium Authors
[email protected]1d7be682014-05-23 20:13:142// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "components/nacl/renderer/nacl_helper.h"
6
7#include "content/public/renderer/renderer_ppapi_host.h"
8
9namespace nacl {
10
11NaClHelper::NaClHelper(content::RenderFrame* render_frame)
12 : RenderFrameObserver(render_frame) {}
13
Sorin Jianu60546762024-10-09 21:23:4414NaClHelper::~NaClHelper() = default;
[email protected]1d7be682014-05-23 20:13:1415
16void NaClHelper::DidCreatePepperPlugin(content::RendererPpapiHost* host) {
17 // The Native Client plugin is a host for external plugins.
18 if (host->GetPluginName() == "Native Client")
19 host->SetToExternalPluginHost();
20}
21
xjz694b50a92016-06-07 21:49:3722void NaClHelper::OnDestruct() {
23 delete this;
24}
25
[email protected]1d7be682014-05-23 20:13:1426} // namespace nacl