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

Side by Side Diff: content/renderer/pepper/content_renderer_pepper_host_factory.cc

Issue 10544089: Implement the file chooser as a new resource "host" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
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 "content/renderer/pepper/content_renderer_pepper_host_factory.h"
6
7 #include "content/renderer/pepper/pepper_file_chooser_host.h"
8 #include "ppapi/proxy/ppapi_messages.h"
9
10 using ppapi::host::ResourceHost;
11
12 namespace content {
13
14 ContentRendererPepperHostFactory::ContentRendererPepperHostFactory(
15 RenderViewImpl* render_view)
16 : render_view_(render_view) {
17 }
18
19 ContentRendererPepperHostFactory::~ContentRendererPepperHostFactory() {
20 }
21
22 scoped_ptr<ResourceHost>
23 ContentRendererPepperHostFactory::CreateMessageReceived(
24 ppapi::host::PpapiHost* host,
25 const ppapi::proxy::ResourceMessageCallParams& params,
26 PP_Instance instance,
27 const IPC::Message& message) {
28 switch (message.type()) {
29 case PpapiHostMsg_FileChooser_Create::ID:
30 return scoped_ptr<ResourceHost>(new PepperFileChooserHost(
31 host, instance, params.pp_resource(), render_view_));
32 }
33 return scoped_ptr<ResourceHost>();
34 }
35
36 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/content_renderer_pepper_host_factory.h ('k') | content/renderer/pepper/pepper_file_chooser_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698