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

Side by Side Diff: src/trusted/sel_universal/pepper_emu_core.cc

Issue 7046064: Some small refactoring and renaming of sel_universel pepper emulation components. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 6 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 Native Client Authors. All rights reserved. 1 // Copyright (c) 2011 The Native Client 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 5
6 // Note: this file defines hooks for all pepper related srpc calls 6 // Note: this file defines hooks for all pepper related srpc calls
7 // it would be nice to keep this synchronized with 7 // it would be nice to keep this synchronized with
8 // src/shared/ppapi_proxy/ppb_rpc_server.cc 8 // src/shared/ppapi_proxy/ppb_rpc_server.cc
9 // which is a generated file 9 // which is a generated file
10 #include "native_client/src/shared/srpc/nacl_srpc.h" 10 #include "native_client/src/shared/srpc/nacl_srpc.h"
11 #include "native_client/src/shared/platform/nacl_log.h" 11 #include "native_client/src/shared/platform/nacl_log.h"
12 #include "native_client/src/trusted/sel_universal/multimedia.h"
13 #include "native_client/src/trusted/sel_universal/pepper_emu.h" 12 #include "native_client/src/trusted/sel_universal/pepper_emu.h"
13 #include "native_client/src/trusted/sel_universal/primitives.h"
14 #include "native_client/src/trusted/sel_universal/rpc_universal.h" 14 #include "native_client/src/trusted/sel_universal/rpc_universal.h"
15 #include "native_client/src/trusted/sel_universal/srpc_helper.h" 15 #include "native_client/src/trusted/sel_universal/srpc_helper.h"
16 16
17 #include <stdio.h> 17 #include <stdio.h>
18 #include <string> 18 #include <string>
19 19
20 namespace { 20 namespace {
21 21
22 // we currently only use this for pushing events upstream 22 // we currently only use this for pushing events upstream
23 IMultimedia* GlobalMultiMediaInterface = 0; 23 IMultimedia* GlobalMultiMediaInterface = 0;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Register Core and misc interfaces 108 // Register Core and misc interfaces
109 ncl->AddUpcallRpc(TUPLE(PPB_Core_ReleaseResource, :i:)); 109 ncl->AddUpcallRpc(TUPLE(PPB_Core_ReleaseResource, :i:));
110 ncl->AddUpcallRpc(TUPLE(PPB_GetInterface, :s:i)); 110 ncl->AddUpcallRpc(TUPLE(PPB_GetInterface, :s:i));
111 ncl->AddUpcallRpc(TUPLE(ReleaseResourceMultipleTimes, :ii:)); 111 ncl->AddUpcallRpc(TUPLE(ReleaseResourceMultipleTimes, :ii:));
112 ncl->AddUpcallRpc(TUPLE(PPB_Core_CallOnMainThread, :iii:)); 112 ncl->AddUpcallRpc(TUPLE(PPB_Core_CallOnMainThread, :iii:));
113 // This is the only rpc for now that can be called from 113 // This is the only rpc for now that can be called from
114 // a nexe thread other than main 114 // a nexe thread other than main
115 // c.f. src/shared/ppapi_proxy/upcall_server.cc 115 // c.f. src/shared/ppapi_proxy/upcall_server.cc
116 ncl->AddUpcallRpcSecondary(TUPLE(PPB_Core_CallOnMainThread, :iii:)); 116 ncl->AddUpcallRpcSecondary(TUPLE(PPB_Core_CallOnMainThread, :iii:));
117 } 117 }
OLDNEW
« no previous file with comments | « src/trusted/sel_universal/non_standard_pepper_events.cc ('k') | src/trusted/sel_universal/pepper_emu_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698