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

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
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/pepper_helper.cc
===================================================================
--- content/browser/pepper_helper.cc (revision 0)
+++ content/browser/pepper_helper.cc (revision 0)
@@ -0,0 +1,20 @@
+// 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,
+ net::HostResolver* host_resolver) {
+ channel->AddFilter(
+ new PepperMessageFilter(PepperMessageFilter::PLUGIN, host_resolver));
+}
+
+} // namespace content
+
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698