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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 InterfaceProxy(Dispatcher* dispatcher, const void* target_interface); | 65 InterfaceProxy(Dispatcher* dispatcher, const void* target_interface); |
66 | 66 |
67 uint32 SendCallback(PP_CompletionCallback callback); | 67 uint32 SendCallback(PP_CompletionCallback callback); |
68 PP_CompletionCallback ReceiveCallback(uint32 serialized_callback); | 68 PP_CompletionCallback ReceiveCallback(uint32 serialized_callback); |
69 | 69 |
70 private: | 70 private: |
71 Dispatcher* dispatcher_; | 71 Dispatcher* dispatcher_; |
72 const void* target_interface_; | 72 const void* target_interface_; |
73 }; | 73 }; |
74 | 74 |
75 inline PP_Bool BoolToPPBool(bool value) { | |
76 return value ? PP_TRUE : PP_FALSE; | |
77 } | |
78 | |
79 inline bool PPBoolToBool(PP_Bool value) { | |
80 return (PP_TRUE == value); | |
81 } | |
82 | |
83 } // namespace proxy | 75 } // namespace proxy |
84 } // namespace pp | 76 } // namespace pp |
85 | 77 |
86 #endif // PPAPI_PROXY_INTERFACE_PROXY_H_ | 78 #endif // PPAPI_PROXY_INTERFACE_PROXY_H_ |
87 | 79 |
OLD | NEW |