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..1b2dde077be8833d3a1cc557601349529c693e01 |
--- /dev/null |
+++ b/components/nacl/renderer/nacl_helper.h |
@@ -0,0 +1,27 @@ |
+// 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" |
+ |
+// This class listens for Pepper creation events from the RenderFrame. For the |
teravest
2014/05/22 20:20:30
I think this should go in the nacl namespace.
dmichael (off chromium)
2014/05/22 20:35:00
Good catch, thanks, done.
|
+// 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); |
+}; |
+ |
+#endif // COMPONENTS_NACL_RENDERER_NACL_HELPER_H_ |