OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 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 "components/nacl/renderer/nacl_helper.h" |
| 6 |
| 7 #include "content/public/renderer/renderer_ppapi_host.h" |
| 8 |
| 9 NaClHelper::NaClHelper(content::RenderFrame* render_frame) |
| 10 : RenderFrameObserver(render_frame) {} |
| 11 |
| 12 NaClHelper::~NaClHelper() {} |
| 13 |
| 14 void NaClHelper::DidCreatePepperPlugin(content::RendererPpapiHost* host) { |
| 15 // The Native Client plugin is a host for external plugins. |
| 16 if (host->GetPluginName() == "Native Client") |
| 17 host->SetToExternalPluginHost(); |
| 18 } |
OLD | NEW |