OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "content/public/browser/pepper_helper.h" | |
6 | |
7 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | |
8 #include "ipc/ipc_channel_proxy.h" | |
9 #include "net/base/host_resolver.h" | |
10 | |
11 namespace content { | |
12 | |
13 void EnablePepperSupportForChannel(IPC::ChannelProxy* channel, | |
14 net::HostResolver* host_resolver) { | |
15 channel->AddFilter( | |
16 new PepperMessageFilter(PepperMessageFilter::PLUGIN, host_resolver)); | |
17 } | |
18 | |
19 } // namespace content | |
20 | |
OLD | NEW |