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

Side by Side Diff: chrome/renderer/pepper/pepper_helper.cc

Issue 10803050: Hook up the PPB_Flash_Print interface to new host system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with deps Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/pepper/pepper_helper.h ('k') | content/public/renderer/render_view_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 "chrome/renderer/pepper/pepper_helper.h"
6
7 #include "chrome/renderer/pepper/chrome_renderer_pepper_host_factory.h"
8 #include "chrome/renderer/pepper/pepper_flash_renderer_message_filter.h"
9 #include "ppapi/host/ppapi_host.h"
10
11 namespace chrome {
12
13 PepperHelper::PepperHelper(content::RenderView* render_view)
14 : RenderViewObserver(render_view) {
15 }
16
17 PepperHelper::~PepperHelper() {
18 }
19
20 void PepperHelper::DidCreatePepperPlugin(ppapi::host::PpapiHost* host) {
21 // TODO(brettw) figure out how to hook up the host factory. It needs some
22 // kind of filter-like system to allow dynamic additions.
23 // new ChromeRendererPepperHostFactory(host);
24 host->AddInstanceMessageFilter(
25 scoped_ptr<ppapi::host::InstanceMessageFilter>(
26 new PepperFlashRendererMessageFilter(host)));
27 }
28
29 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/renderer/pepper/pepper_helper.h ('k') | content/public/renderer/render_view_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698