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

Side by Side Diff: ppapi/proxy/ppb_var_deprecated_proxy.cc

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 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
« no previous file with comments | « ppapi/proxy/ppb_var_deprecated_proxy.h ('k') | ppapi/proxy/ppp_class_proxy.h » ('j') | no next file with comments »
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 #include "ppapi/proxy/ppb_var_deprecated_proxy.h" 5 #include "ppapi/proxy/ppb_var_deprecated_proxy.h"
6 6
7 #include <stdlib.h> // For malloc 7 #include <stdlib.h> // For malloc
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "ppapi/c/dev/ppb_var_deprecated.h" 10 #include "ppapi/c/dev/ppb_var_deprecated.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 240 }
241 241
242 const void* PPB_Var_Deprecated_Proxy::GetSourceInterface() const { 242 const void* PPB_Var_Deprecated_Proxy::GetSourceInterface() const {
243 return &var_deprecated_interface; 243 return &var_deprecated_interface;
244 } 244 }
245 245
246 InterfaceID PPB_Var_Deprecated_Proxy::GetInterfaceId() const { 246 InterfaceID PPB_Var_Deprecated_Proxy::GetInterfaceId() const {
247 return INTERFACE_ID_PPB_VAR_DEPRECATED; 247 return INTERFACE_ID_PPB_VAR_DEPRECATED;
248 } 248 }
249 249
250 void PPB_Var_Deprecated_Proxy::OnMessageReceived(const IPC::Message& msg) { 250 bool PPB_Var_Deprecated_Proxy::OnMessageReceived(const IPC::Message& msg) {
251 bool handled = true;
251 IPC_BEGIN_MESSAGE_MAP(PPB_Var_Deprecated_Proxy, msg) 252 IPC_BEGIN_MESSAGE_MAP(PPB_Var_Deprecated_Proxy, msg)
252 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_HasProperty, 253 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_HasProperty,
253 OnMsgHasProperty) 254 OnMsgHasProperty)
254 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_HasMethodDeprecated, 255 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_HasMethodDeprecated,
255 OnMsgHasMethodDeprecated) 256 OnMsgHasMethodDeprecated)
256 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_GetProperty, 257 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_GetProperty,
257 OnMsgGetProperty) 258 OnMsgGetProperty)
258 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_DeleteProperty, 259 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_DeleteProperty,
259 OnMsgDeleteProperty) 260 OnMsgDeleteProperty)
260 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_EnumerateProperties, 261 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_EnumerateProperties,
261 OnMsgEnumerateProperties) 262 OnMsgEnumerateProperties)
262 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_SetPropertyDeprecated, 263 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_SetPropertyDeprecated,
263 OnMsgSetPropertyDeprecated) 264 OnMsgSetPropertyDeprecated)
264 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_CallDeprecated, 265 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_CallDeprecated,
265 OnMsgCallDeprecated) 266 OnMsgCallDeprecated)
266 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_Construct, 267 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_Construct,
267 OnMsgConstruct) 268 OnMsgConstruct)
268 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated, 269 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated,
269 OnMsgIsInstanceOfDeprecated) 270 OnMsgIsInstanceOfDeprecated)
270 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_CreateObjectDeprecated, 271 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBVar_CreateObjectDeprecated,
271 OnMsgCreateObjectDeprecated) 272 OnMsgCreateObjectDeprecated)
273 IPC_MESSAGE_UNHANDLED(handled = false)
272 IPC_END_MESSAGE_MAP() 274 IPC_END_MESSAGE_MAP()
273 // TODO(brettw) handle bad messages! 275 // TODO(brettw) handle bad messages!
276 return handled;
274 } 277 }
275 278
276 void PPB_Var_Deprecated_Proxy::OnMsgHasProperty( 279 void PPB_Var_Deprecated_Proxy::OnMsgHasProperty(
277 SerializedVarReceiveInput var, 280 SerializedVarReceiveInput var,
278 SerializedVarReceiveInput name, 281 SerializedVarReceiveInput name,
279 SerializedVarOutParam exception, 282 SerializedVarOutParam exception,
280 PP_Bool* result) { 283 PP_Bool* result) {
281 *result = BoolToPPBool(ppb_var_target()->HasProperty( 284 *result = BoolToPPBool(ppb_var_target()->HasProperty(
282 var.Get(dispatcher()), 285 var.Get(dispatcher()),
283 name.Get(dispatcher()), 286 name.Get(dispatcher()),
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 PP_Module module_id, 380 PP_Module module_id,
378 int64 ppp_class, 381 int64 ppp_class,
379 int64 class_data, 382 int64 class_data,
380 SerializedVarReturnValue result) { 383 SerializedVarReturnValue result) {
381 result.Return(dispatcher(), PPP_Class_Proxy::CreateProxiedObject( 384 result.Return(dispatcher(), PPP_Class_Proxy::CreateProxiedObject(
382 ppb_var_target(), dispatcher(), module_id, ppp_class, class_data)); 385 ppb_var_target(), dispatcher(), module_id, ppp_class, class_data));
383 } 386 }
384 387
385 } // namespace proxy 388 } // namespace proxy
386 } // namespace pp 389 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_var_deprecated_proxy.h ('k') | ppapi/proxy/ppp_class_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698