OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
63 | 63 |
64 protected: | 64 protected: |
65 uint32 SendCallback(PP_CompletionCallback callback); | 65 uint32 SendCallback(PP_CompletionCallback callback); |
66 PP_CompletionCallback ReceiveCallback(uint32 serialized_callback); | 66 PP_CompletionCallback ReceiveCallback(uint32 serialized_callback); |
67 | 67 |
68 private: | 68 private: |
69 Dispatcher* dispatcher_; | 69 Dispatcher* dispatcher_; |
70 const void* target_interface_; | 70 const void* target_interface_; |
71 }; | 71 }; |
72 | 72 |
73 inline PP_Bool BoolToPPBool(bool value) { | |
74 return value ? PP_TRUE : PP_FALSE; | |
75 } | |
76 | |
77 inline bool PPBoolToBool(PP_Bool value) { | |
78 return (PP_TRUE == value); | |
79 } | |
dmichael(do not use this one)
2010/11/08 15:31:19
Is there a reason you can't or shouldn't use ppapi
brettw
2010/11/08 15:51:02
The proxy layer is actually totally separate from
dmichael(do not use this one)
2010/11/08 16:11:51
That makes sense. That being the case, I'm not su
| |
80 | |
73 } // namespace proxy | 81 } // namespace proxy |
74 } // namespace pp | 82 } // namespace pp |
75 | 83 |
76 #endif // PPAPI_PROXY_INTERFACE_PROXY_H_ | 84 #endif // PPAPI_PROXY_INTERFACE_PROXY_H_ |
77 | 85 |
OLD | NEW |