Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: components/nacl/renderer/nacl_helper.h

Issue 290553004: PPAPI: Refactor MessageChannel to prep for sync postMessae (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move NaClHelper in to nacl namespace Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/nacl.gyp ('k') | components/nacl/renderer/nacl_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « components/nacl.gyp ('k') | components/nacl/renderer/nacl_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698