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

Side by Side Diff: src/shared/npruntime/npmodule_rpc_impl.cc

Issue 2981011: Move plugin/srpc contents to the more appropriately named plugin/common.... (Closed) Base URL: http://nativeclient.googlecode.com/svn/trunk/src/native_client/
Patch Set: '' Created 10 years, 5 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 | « no previous file | src/trusted/plugin/browser_interface.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 /* 1 /*
2 * Copyright (c) 2010 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2010 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "native_client/src/include/nacl_string.h" 9 #include "native_client/src/include/nacl_string.h"
10 #include "native_client/src/include/portability.h" 10 #include "native_client/src/include/portability.h"
11 #include "native_client/src/include/checked_cast.h" 11 #include "native_client/src/include/checked_cast.h"
12 #include "native_client/src/shared/npruntime/npmodule.h" 12 #include "native_client/src/shared/npruntime/npmodule.h"
13 13
14 #include "gen/native_client/src/shared/npruntime/npmodule_rpc.h" 14 #include "gen/native_client/src/shared/npruntime/npmodule_rpc.h"
15 #include "gen/native_client/src/shared/npruntime/npnavigator_rpc.h" 15 #include "gen/native_client/src/shared/npruntime/npnavigator_rpc.h"
16 #include "native_client/src/include/portability_io.h" 16 #include "native_client/src/include/portability_io.h"
17 #include "native_client/src/include/portability_process.h" 17 #include "native_client/src/include/portability_process.h"
18 #include "native_client/src/shared/npruntime/nacl_npapi.h" 18 #include "native_client/src/shared/npruntime/nacl_npapi.h"
19 #include "native_client/src/shared/npruntime/npobject_proxy.h" 19 #include "native_client/src/shared/npruntime/npobject_proxy.h"
20 #include "native_client/src/shared/npruntime/npobject_stub.h" 20 #include "native_client/src/shared/npruntime/npobject_stub.h"
21 #include "native_client/src/shared/npruntime/pointer_translations.h" 21 #include "native_client/src/shared/npruntime/pointer_translations.h"
22 #include "native_client/src/shared/npruntime/structure_translations.h" 22 #include "native_client/src/shared/npruntime/structure_translations.h"
23 #include "native_client/src/shared/platform/nacl_threads.h" 23 #include "native_client/src/shared/platform/nacl_threads.h"
24 #include "native_client/src/trusted/desc/nacl_desc_invalid.h" 24 #include "native_client/src/trusted/desc/nacl_desc_invalid.h"
25 #include "native_client/src/trusted/desc/nacl_desc_wrapper.h" 25 #include "native_client/src/trusted/desc/nacl_desc_wrapper.h"
26 #include "native_client/src/trusted/plugin/origin.h" 26 #include "native_client/src/trusted/plugin/origin.h"
27 #include "native_client/src/trusted/plugin/npapi/browser_impl_npapi.h" 27 #include "native_client/src/trusted/plugin/npapi/browser_impl_npapi.h"
28 #include "native_client/src/trusted/plugin/npapi/closure.h" 28 #include "native_client/src/trusted/plugin/npapi/closure.h"
29 #include "native_client/src/trusted/plugin/srpc/utility.h" 29 #include "native_client/src/trusted/plugin/utility.h"
30 #include "third_party/npapi/bindings/npapi_extensions.h" 30 #include "third_party/npapi/bindings/npapi_extensions.h"
31 31
32 using nacl::NPIdentifierToWireFormat; 32 using nacl::NPIdentifierToWireFormat;
33 using nacl::NPModule; 33 using nacl::NPModule;
34 using nacl::NPObjectToWireFormat; 34 using nacl::NPObjectToWireFormat;
35 using nacl::NPVariantsToWireFormat; 35 using nacl::NPVariantsToWireFormat;
36 using nacl::WireFormatToNPIdentifier; 36 using nacl::WireFormatToNPIdentifier;
37 using nacl::WireFormatToNPP; 37 using nacl::WireFormatToNPP;
38 using nacl::WireFormatToNPObject; 38 using nacl::WireFormatToNPObject;
39 using nacl::WireFormatToNPString; 39 using nacl::WireFormatToNPString;
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 444
445 NaClSrpcError AudioRpcServer::AudioSetState(NaClSrpcChannel* channel, 445 NaClSrpcError AudioRpcServer::AudioSetState(NaClSrpcChannel* channel,
446 int32_t wire_npp, 446 int32_t wire_npp,
447 int32_t state, 447 int32_t state,
448 int32_t value) { 448 int32_t value) {
449 UNREFERENCED_PARAMETER(channel); 449 UNREFERENCED_PARAMETER(channel);
450 NPModule* module = NPModule::GetModule(wire_npp); 450 NPModule* module = NPModule::GetModule(wire_npp);
451 451
452 return module->AudioSetState(WireFormatToNPP(wire_npp), state, value); 452 return module->AudioSetState(WireFormatToNPP(wire_npp), state, value);
453 } 453 }
OLDNEW
« no previous file with comments | « no previous file | src/trusted/plugin/browser_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698