| Index: components/nacl/renderer/nacl_helper.cc
|
| diff --git a/components/nacl/renderer/nacl_helper.cc b/components/nacl/renderer/nacl_helper.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..516096a3dbbec41990e1dc5404412459f9211748
|
| --- /dev/null
|
| +++ b/components/nacl/renderer/nacl_helper.cc
|
| @@ -0,0 +1,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
|
|
|