OLD | NEW |
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 #include "native_client/src/trusted/plugin/srpc/service_runtime.h" | 7 #include "native_client/src/trusted/plugin/service_runtime.h" |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "native_client/src/include/nacl_string.h" | 12 #include "native_client/src/include/nacl_string.h" |
13 #include "native_client/src/include/nacl_macros.h" | 13 #include "native_client/src/include/nacl_macros.h" |
14 #include "native_client/src/shared/imc/nacl_imc.h" | 14 #include "native_client/src/shared/imc/nacl_imc.h" |
15 #include "native_client/src/shared/platform/nacl_log.h" | 15 #include "native_client/src/shared/platform/nacl_log.h" |
16 #include "native_client/src/trusted/desc/nacl_desc_imc.h" | 16 #include "native_client/src/trusted/desc/nacl_desc_imc.h" |
17 #include "native_client/src/trusted/desc/nrd_xfer.h" | 17 #include "native_client/src/trusted/desc/nrd_xfer.h" |
18 #include "native_client/src/trusted/desc/nrd_xfer_effector.h" | 18 #include "native_client/src/trusted/desc/nrd_xfer_effector.h" |
19 #include "native_client/src/trusted/handle_pass/browser_handle.h" | 19 #include "native_client/src/trusted/handle_pass/browser_handle.h" |
20 #include "native_client/src/trusted/nonnacl_util/sel_ldr_launcher.h" | 20 #include "native_client/src/trusted/nonnacl_util/sel_ldr_launcher.h" |
21 | 21 |
22 #include "native_client/src/trusted/plugin/npapi/multimedia_socket.h" | 22 #include "native_client/src/trusted/plugin/browser_interface.h" |
23 #include "native_client/src/trusted/plugin/srpc/browser_interface.h" | 23 #include "native_client/src/trusted/plugin/connected_socket.h" |
24 #include "native_client/src/trusted/plugin/srpc/connected_socket.h" | 24 #include "native_client/src/trusted/plugin/plugin.h" |
25 #include "native_client/src/trusted/plugin/srpc/plugin.h" | 25 #include "native_client/src/trusted/plugin/scriptable_handle.h" |
26 #include "native_client/src/trusted/plugin/srpc/shared_memory.h" | 26 #include "native_client/src/trusted/plugin/shared_memory.h" |
27 #include "native_client/src/trusted/plugin/srpc/socket_address.h" | 27 #include "native_client/src/trusted/plugin/socket_address.h" |
28 #include "native_client/src/trusted/plugin/srpc/srt_socket.h" | 28 #include "native_client/src/trusted/plugin/srt_socket.h" |
29 #include "native_client/src/trusted/plugin/srpc/scriptable_handle.h" | 29 #include "native_client/src/trusted/plugin/utility.h" |
30 #include "native_client/src/trusted/plugin/srpc/utility.h" | |
31 | 30 |
32 #include "native_client/src/trusted/service_runtime/nacl_error_code.h" | 31 #include "native_client/src/trusted/service_runtime/nacl_error_code.h" |
33 #include "native_client/src/trusted/service_runtime/include/sys/nacl_imc_api.h" | 32 #include "native_client/src/trusted/service_runtime/include/sys/nacl_imc_api.h" |
34 | 33 |
35 using std::vector; | 34 using std::vector; |
36 | 35 |
37 namespace plugin { | 36 namespace plugin { |
38 | 37 |
39 ServiceRuntime::ServiceRuntime( | 38 ServiceRuntime::ServiceRuntime( |
40 BrowserInterface* browser_interface, | 39 BrowserInterface* browser_interface, |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 static_cast<void*>(descs[0]))); | 402 static_cast<void*>(descs[0]))); |
404 retval = browser_interface_->NewScriptableHandle( | 403 retval = browser_interface_->NewScriptableHandle( |
405 SocketAddress::New(plugin, descs[0])); | 404 SocketAddress::New(plugin, descs[0])); |
406 cleanup: | 405 cleanup: |
407 imc_desc->Delete(); | 406 imc_desc->Delete(); |
408 PLUGIN_PRINTF((" returning %p\n", static_cast<void*>(retval))); | 407 PLUGIN_PRINTF((" returning %p\n", static_cast<void*>(retval))); |
409 return retval; | 408 return retval; |
410 } | 409 } |
411 | 410 |
412 } // namespace plugin | 411 } // namespace plugin |
OLD | NEW |