| Index: components/nacl/renderer/nacl_helper.h
|
| diff --git a/components/nacl/renderer/nacl_helper.h b/components/nacl/renderer/nacl_helper.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..be3a52d468cfa50f9ccaa8ee7883f89ae27ffdce
|
| --- /dev/null
|
| +++ b/components/nacl/renderer/nacl_helper.h
|
| @@ -0,0 +1,31 @@
|
| +// 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.
|
| +
|
| +#ifndef COMPONENTS_NACL_RENDERER_NACL_HELPER_H_
|
| +#define COMPONENTS_NACL_RENDERER_NACL_HELPER_H_
|
| +
|
| +#include "base/compiler_specific.h"
|
| +#include "content/public/renderer/render_frame_observer.h"
|
| +
|
| +namespace nacl {
|
| +
|
| +// This class listens for Pepper creation events from the RenderFrame. For the
|
| +// NaCl trusted plugin, it configures it as an external plugin host.
|
| +// TODO(dmichael): When the trusted plugin goes away, we need to figure out the
|
| +// right event to watch for.
|
| +class NaClHelper : public content::RenderFrameObserver {
|
| + public:
|
| + explicit NaClHelper(content::RenderFrame* render_frame);
|
| + virtual ~NaClHelper();
|
| +
|
| + // RenderFrameObserver.
|
| + virtual void DidCreatePepperPlugin(content::RendererPpapiHost* host) OVERRIDE;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(NaClHelper);
|
| +};
|
| +
|
| +} // namespace nacl
|
| +
|
| +#endif // COMPONENTS_NACL_RENDERER_NACL_HELPER_H_
|
|
|