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

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

Issue 2539033005: ppapi: Cleanup class/struct forward declarations (Closed)
Patch Set: Add missing forward declaration in content/renderer/pepper Created 4 years 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
« no previous file with comments | « ppapi/cpp/text_input_controller.h ('k') | ppapi/host/ppapi_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_HOST_HOST_FACTORY_H_ 5 #ifndef PPAPI_HOST_HOST_FACTORY_H_
6 #define PPAPI_HOST_HOST_FACTORY_H_ 6 #define PPAPI_HOST_HOST_FACTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ppapi/c/pp_instance.h" 10 #include "ppapi/c/pp_instance.h"
11 #include "ppapi/c/pp_resource.h" 11 #include "ppapi/c/pp_resource.h"
12 12
13 namespace IPC { 13 namespace IPC {
14 class Message; 14 class Message;
15 } 15 }
16 16
17 namespace ppapi { 17 namespace ppapi {
18 18
19 namespace proxy {
20 class ResourceMessageCallParams;
21 }
22
23 namespace host { 19 namespace host {
24 20
25 class PpapiHost; 21 class PpapiHost;
26 class ResourceHost; 22 class ResourceHost;
27 23
28 // A host factory creates ResourceHosts for incoming create messages from 24 // A host factory creates ResourceHosts for incoming create messages from
29 // the plugin. This allows us to implement the hosts at the chrome/content 25 // the plugin. This allows us to implement the hosts at the chrome/content
30 // layer without the ppapi layer knowing about the details. 26 // layer without the ppapi layer knowing about the details.
31 class HostFactory { 27 class HostFactory {
32 public: 28 public:
33 virtual ~HostFactory() {} 29 virtual ~HostFactory() {}
34 30
35 virtual std::unique_ptr<ResourceHost> CreateResourceHost( 31 virtual std::unique_ptr<ResourceHost> CreateResourceHost(
36 PpapiHost* host, 32 PpapiHost* host,
37 PP_Resource resource, 33 PP_Resource resource,
38 PP_Instance instance, 34 PP_Instance instance,
39 const IPC::Message& message) = 0; 35 const IPC::Message& message) = 0;
40 }; 36 };
41 37
42 } // namespace host 38 } // namespace host
43 } // namespace ppapi 39 } // namespace ppapi
44 40
45 #endif // PPAPI_HOST_HOST_FACTORY_H_ 41 #endif // PPAPI_HOST_HOST_FACTORY_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/text_input_controller.h ('k') | ppapi/host/ppapi_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698