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

Unified Diff: content/browser/pepper_helper.cc

Issue 10907102: Add a PepperHelper::EnablePepperSupportForChannel function to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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
Index: content/browser/pepper_helper.cc
===================================================================
--- content/browser/pepper_helper.cc (revision 0)
+++ content/browser/pepper_helper.cc (revision 0)
@@ -0,0 +1,22 @@
+// Copyright (c) 2012 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 "content/public/browser/pepper_helper.h"
+
+#include "content/browser/renderer_host/pepper/pepper_message_filter.h"
+#include "ipc/ipc_channel_proxy.h"
+#include "net/base/host_resolver.h"
+
+namespace content {
+
+void EnablePepperSupportForChannel(
+ IPC::ChannelProxy* channel,
+ int renderer_process_id) {
+ channel->AddFilter(
+ new PepperMessageFilter(PepperMessageFilter::PLUGIN,
+ renderer_process_id));
+}
+
+} // namespace content
+

Powered by Google App Engine
This is Rietveld 408576698