OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PROXY_INTERFACE_PROXY_H_ | 5 #ifndef PPAPI_PROXY_INTERFACE_PROXY_H_ |
6 #define PPAPI_PROXY_INTERFACE_PROXY_H_ | 6 #define PPAPI_PROXY_INTERFACE_PROXY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "ipc/ipc_channel.h" | 9 #include "ipc/ipc_channel.h" |
10 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
11 #include "ppapi/c/pp_completion_callback.h" | 11 #include "ppapi/c/pp_completion_callback.h" |
12 #include "ppapi/c/pp_resource.h" | 12 #include "ppapi/c/pp_resource.h" |
13 #include "ppapi/c/pp_var.h" | 13 #include "ppapi/c/pp_var.h" |
14 #include "ppapi/shared_impl/api_id.h" | 14 #include "ppapi/shared_impl/api_id.h" |
15 #include "ppapi/shared_impl/function_group_base.h" | |
16 | 15 |
17 namespace ppapi { | 16 namespace ppapi { |
18 namespace proxy { | 17 namespace proxy { |
19 | 18 |
20 class Dispatcher; | 19 class Dispatcher; |
21 | 20 |
22 class InterfaceProxy : public IPC::Channel::Listener, | 21 class InterfaceProxy : public IPC::Channel::Listener, |
23 public IPC::Message::Sender, | 22 public IPC::Message::Sender { |
24 public FunctionGroupBase { | |
25 public: | 23 public: |
26 // Factory function type for interfaces. Ownership of the returned pointer | 24 // Factory function type for interfaces. Ownership of the returned pointer |
27 // is transferred to the caller. | 25 // is transferred to the caller. |
28 typedef InterfaceProxy* (*Factory)(Dispatcher* dispatcher); | 26 typedef InterfaceProxy* (*Factory)(Dispatcher* dispatcher); |
29 | 27 |
30 // DEPRECATED: New classes should be registered directly in the interface | 28 // DEPRECATED: New classes should be registered directly in the interface |
31 // list. This is kept around until we convert all the existing code. | 29 // list. This is kept around until we convert all the existing code. |
32 // | 30 // |
33 // Information about the interface. Each interface has a static function to | 31 // Information about the interface. Each interface has a static function to |
34 // return its info, which allows either construction on the target side, and | 32 // return its info, which allows either construction on the target side, and |
(...skipping 27 matching lines...) Expand all Loading... |
62 | 60 |
63 private: | 61 private: |
64 Dispatcher* dispatcher_; | 62 Dispatcher* dispatcher_; |
65 }; | 63 }; |
66 | 64 |
67 } // namespace proxy | 65 } // namespace proxy |
68 } // namespace ppapi | 66 } // namespace ppapi |
69 | 67 |
70 #endif // PPAPI_PROXY_INTERFACE_PROXY_H_ | 68 #endif // PPAPI_PROXY_INTERFACE_PROXY_H_ |
71 | 69 |
OLD | NEW |