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" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual bool Send(IPC::Message* msg); | 53 virtual bool Send(IPC::Message* msg); |
54 | 54 |
55 // Sub-classes must implement IPC::Channel::Listener which contains this: | 55 // Sub-classes must implement IPC::Channel::Listener which contains this: |
56 //virtual bool OnMessageReceived(const IPC::Message& msg); | 56 //virtual bool OnMessageReceived(const IPC::Message& msg); |
57 | 57 |
58 protected: | 58 protected: |
59 // Creates the given interface associated with the given dispatcher. The | 59 // Creates the given interface associated with the given dispatcher. The |
60 // dispatcher manages our lifetime. | 60 // dispatcher manages our lifetime. |
61 InterfaceProxy(Dispatcher* dispatcher); | 61 InterfaceProxy(Dispatcher* dispatcher); |
62 | 62 |
| 63 uint32 SendCallback(PP_CompletionCallback callback); |
| 64 PP_CompletionCallback ReceiveCallback(uint32 serialized_callback); |
| 65 |
63 private: | 66 private: |
64 Dispatcher* dispatcher_; | 67 Dispatcher* dispatcher_; |
65 }; | 68 }; |
66 | 69 |
67 } // namespace proxy | 70 } // namespace proxy |
68 } // namespace ppapi | 71 } // namespace ppapi |
69 | 72 |
70 #endif // PPAPI_PROXY_INTERFACE_PROXY_H_ | 73 #endif // PPAPI_PROXY_INTERFACE_PROXY_H_ |
71 | 74 |
OLD | NEW |