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

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

Issue 4659001: Convert Chrome PPAPI proxy from bool to PP_Bool. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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
« no previous file with comments | « no previous file | ppapi/proxy/ppapi_messages.h » ('j') | ppapi/proxy/ppb_core_proxy.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | ppapi/proxy/ppapi_messages.h » ('j') | ppapi/proxy/ppb_core_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698