summaryrefslogtreecommitdiffstats
path: root/components/nacl/renderer/nacl_helper.cc
blob: 516096a3dbbec41990e1dc5404412459f9211748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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 file.

#include "components/nacl/renderer/nacl_helper.h"

#include "content/public/renderer/renderer_ppapi_host.h"

namespace nacl {

NaClHelper::NaClHelper(content::RenderFrame* render_frame)
    : RenderFrameObserver(render_frame) {}

NaClHelper::~NaClHelper() {}

void NaClHelper::DidCreatePepperPlugin(content::RendererPpapiHost* host) {
  // The Native Client plugin is a host for external plugins.
  if (host->GetPluginName() == "Native Client")
    host->SetToExternalPluginHost();
}

}  // namespace nacl