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

Side by Side Diff: ppapi/host/host_factory.h

Issue 10572040: Create a PPAPI host for new resource message routing. (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
« no previous file with comments | « no previous file | ppapi/host/host_message_context.h » ('j') | ppapi/host/ppapi_host.cc » ('J')
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 #ifndef PPAPI_HOST_HOST_FACTORY_H_
6 #define PPAPI_HOST_HOST_FACTORY_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "ppapi/c/pp_instance.h"
10
11 namespace IPC {
12 class Message;
13 }
14
15 namespace ppapi {
16
17 namespace proxy {
18 class ResourceMessageCallParams;
19 }
20
21 namespace host {
22
23 class PpapiHost;
24 class ResourceHost;
25
26 // A host factory creates ResourceHosts for incoming create messages from
27 // the plugin. This allows us to implement the hosts at the chrome/content
28 // layer without the ppapi layer knowing about the details.
29 class HostFactory {
30 public:
31 virtual scoped_ptr<ResourceHost> CreateMessageReceived(
dmichael (off chromium) 2012/06/22 16:56:49 The name's slightly confusing, seeing as this is a
32 PpapiHost* host,
33 const proxy::ResourceMessageCallParams& params,
34 PP_Instance instance,
35 const IPC::Message& message) = 0;
36
37 protected:
38 virtual ~HostFactory() {}
dmichael (off chromium) 2012/06/22 16:56:49 Is it important that we disallow deleting via a ba
39 };
40
41 } // namespace host
42 } // namespace ppapi
43
44 #endif // PPAPI_HOST_HOST_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | ppapi/host/host_message_context.h » ('j') | ppapi/host/ppapi_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698