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

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

Issue 6432001: Implement proxy for FlashMenu and Run/QuitMessageLoop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 #include "ppapi/proxy/ppapi_param_traits.h" 5 #include "ppapi/proxy/ppapi_param_traits.h"
6 6
7 #include <string.h> // For memcpy 7 #include <string.h> // For memcpy
8 8
9 #include "ppapi/c/dev/pp_file_info_dev.h" 9 #include "ppapi/c/dev/pp_file_info_dev.h"
10 #include "ppapi/c/pp_resource.h" 10 #include "ppapi/c/pp_resource.h"
11 #include "ppapi/proxy/host_resource.h" 11 #include "ppapi/proxy/host_resource.h"
12 #include "ppapi/proxy/interface_proxy.h" 12 #include "ppapi/proxy/interface_proxy.h"
13 #include "ppapi/proxy/ppapi_messages.h" 13 #include "ppapi/proxy/ppapi_messages.h"
14 #include "ppapi/proxy/serialized_var.h" 14 #include "ppapi/proxy/serialized_var.h"
15 #include "ppapi/proxy/serialized_flash_menu.h"
15 16
16 namespace IPC { 17 namespace IPC {
17 18
18 // PP_Bool --------------------------------------------------------------------- 19 // PP_Bool ---------------------------------------------------------------------
19 20
20 // static 21 // static
21 void ParamTraits<PP_Bool>::Write(Message* m, const param_type& p) { 22 void ParamTraits<PP_Bool>::Write(Message* m, const param_type& p) {
22 ParamTraits<bool>::Write(m, pp::proxy::PPBoolToBool(p)); 23 ParamTraits<bool>::Write(m, pp::proxy::PPBoolToBool(p));
23 } 24 }
24 25
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 } 471 }
471 return true; 472 return true;
472 } 473 }
473 474
474 // static 475 // static
475 void ParamTraits< std::vector<pp::proxy::SerializedVar> >::Log( 476 void ParamTraits< std::vector<pp::proxy::SerializedVar> >::Log(
476 const param_type& p, 477 const param_type& p,
477 std::string* l) { 478 std::string* l) {
478 } 479 }
479 480
481 // SerializedFlashMenu ---------------------------------------------------------
482
483 // static
484 void ParamTraits<pp::proxy::SerializedFlashMenu>::Write(Message* m,
485 const param_type& p) {
486 p.WriteToMessage(m);
487 }
488
489 // static
490 bool ParamTraits<pp::proxy::SerializedFlashMenu>::Read(const Message* m,
491 void** iter,
492 param_type* r) {
493 return r->ReadFromMessage(m, iter);
494 }
495
496 // static
497 void ParamTraits<pp::proxy::SerializedFlashMenu>::Log(const param_type& p,
498 std::string* l) {
499 }
500
480 } // namespace IPC 501 } // namespace IPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698