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

Side by Side Diff: ppapi/proxy/interface_proxy.h

Issue 7237039: Remove PPBoolToBool and BoolToPPBool and use PP_FromBool and PP_ToBool instead. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698