summaryrefslogtreecommitdiffstats
path: root/content/browser/pepper_helper.cc
blob: 764d2701a89566b09acb4d5bfa8eb1109ed72540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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