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

Side by Side Diff: src/trusted/plugin/desc_based_handle.cc

Issue 5622003: Restructure the structs/unions involved in SRPC argument passing. This will... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 10 years 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 /* 1 /*
2 * Copyright 2008 The Native Client Authors. All rights reserved. 2 * Copyright 2008 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can 3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file. 4 * be found in the LICENSE file.
5 */ 5 */
6 6
7 7
8 #include <setjmp.h> 8 #include <setjmp.h>
9 #include <stdio.h> 9 #include <stdio.h>
10 #include <string.h> 10 #include <string.h>
(...skipping 22 matching lines...) Expand all
33 plugin::SharedMemory* portable_shared_memory = 33 plugin::SharedMemory* portable_shared_memory =
34 plugin::SharedMemory::New(ptr->plugin(), shm_wrapper); 34 plugin::SharedMemory::New(ptr->plugin(), shm_wrapper);
35 plugin::ScriptableHandle* shared_memory = 35 plugin::ScriptableHandle* shared_memory =
36 ptr->browser_interface()->NewScriptableHandle(portable_shared_memory); 36 ptr->browser_interface()->NewScriptableHandle(portable_shared_memory);
37 if (NULL == shared_memory) { 37 if (NULL == shared_memory) {
38 return false; 38 return false;
39 } 39 }
40 PLUGIN_PRINTF(("Map (shared_memory=%p)\n", 40 PLUGIN_PRINTF(("Map (shared_memory=%p)\n",
41 static_cast<void*>(shared_memory))); 41 static_cast<void*>(shared_memory)));
42 params->outs()[0]->tag = NACL_SRPC_ARG_TYPE_OBJECT; 42 params->outs()[0]->tag = NACL_SRPC_ARG_TYPE_OBJECT;
43 params->outs()[0]->u.oval = shared_memory; 43 params->outs()[0]->arrays.oval = shared_memory;
44 return true; 44 return true;
45 } 45 }
46 46
47 } // namespace 47 } // namespace
48 48
49 namespace plugin { 49 namespace plugin {
50 50
51 DescBasedHandle::DescBasedHandle() 51 DescBasedHandle::DescBasedHandle()
52 : plugin_(NULL), wrapper_(NULL) { 52 : plugin_(NULL), wrapper_(NULL) {
53 PLUGIN_PRINTF(("DescBasedHandle::DescBasedHandle (this=%p)\n", 53 PLUGIN_PRINTF(("DescBasedHandle::DescBasedHandle (this=%p)\n",
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 BrowserInterface* DescBasedHandle::browser_interface() const { 87 BrowserInterface* DescBasedHandle::browser_interface() const {
88 return plugin_->browser_interface(); 88 return plugin_->browser_interface();
89 } 89 }
90 90
91 void DescBasedHandle::LoadMethods() { 91 void DescBasedHandle::LoadMethods() {
92 // Methods supported by DescBasedHandle. 92 // Methods supported by DescBasedHandle.
93 AddMethodCall(Map, "map", "", "h"); 93 AddMethodCall(Map, "map", "", "h");
94 } 94 }
95 95
96 } // namespace plugin 96 } // namespace plugin
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698