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

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 NaCl hook to components/nacl/renderer 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..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_
« 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