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/npapi/multimedia_socket.h" | 7 #include "native_client/src/trusted/plugin/npapi/multimedia_socket.h" |
8 | 8 |
9 #include <string.h> | 9 #include <string.h> |
10 | 10 |
11 #include "native_client/src/include/portability_io.h" | 11 #include "native_client/src/include/portability_io.h" |
12 #include "native_client/src/shared/platform/nacl_sync.h" | 12 #include "native_client/src/shared/platform/nacl_sync.h" |
13 #include "native_client/src/shared/platform/nacl_sync_checked.h" | 13 #include "native_client/src/shared/platform/nacl_sync_checked.h" |
14 #include "native_client/src/shared/platform/nacl_threads.h" | 14 #include "native_client/src/shared/platform/nacl_threads.h" |
15 #include "native_client/src/shared/platform/nacl_time.h" | 15 #include "native_client/src/shared/platform/nacl_time.h" |
16 | 16 |
17 #include "native_client/src/trusted/desc/nacl_desc_imc.h" | 17 #include "native_client/src/trusted/desc/nacl_desc_imc.h" |
18 | 18 |
| 19 #include "native_client/src/trusted/plugin/browser_interface.h" |
19 #include "native_client/src/trusted/plugin/npapi/plugin_npapi.h" | 20 #include "native_client/src/trusted/plugin/npapi/plugin_npapi.h" |
20 #include "native_client/src/trusted/plugin/npapi/video.h" | 21 #include "native_client/src/trusted/plugin/npapi/video.h" |
21 #include "native_client/src/trusted/plugin/srpc/browser_interface.h" | 22 #include "native_client/src/trusted/plugin/service_runtime.h" |
22 #include "native_client/src/trusted/plugin/srpc/service_runtime.h" | 23 #include "native_client/src/trusted/plugin/shared_memory.h" |
23 #include "native_client/src/trusted/plugin/srpc/shared_memory.h" | 24 #include "native_client/src/trusted/plugin/srpc_client.h" |
24 #include "native_client/src/trusted/plugin/srpc/srpc_client.h" | 25 #include "native_client/src/trusted/plugin/utility.h" |
25 #include "native_client/src/trusted/plugin/srpc/utility.h" | |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 uintptr_t kNaClMultimediaBridgeIdent; | 29 uintptr_t kNaClMultimediaBridgeIdent; |
30 | 30 |
31 int const kMaxUpcallThreadWaitSec = 5; | 31 int const kMaxUpcallThreadWaitSec = 5; |
32 int const kNanoXinMicroX = 1000; | 32 int const kNanoXinMicroX = 1000; |
33 | 33 |
34 // NB: InitializeIdentifiers is not thread-safe. | 34 // NB: InitializeIdentifiers is not thread-safe. |
35 void InitializeIdentifiers(plugin::BrowserInterface* browser_interface) { | 35 void InitializeIdentifiers(plugin::BrowserInterface* browser_interface) { |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 METHOD_CALL, | 263 METHOD_CALL, |
264 ¶ms); | 264 ¶ms); |
265 PLUGIN_PRINTF(("MultmediaSocket::InitializeModuleMultimedia:" | 265 PLUGIN_PRINTF(("MultmediaSocket::InitializeModuleMultimedia:" |
266 " returned %d\n", static_cast<int>(rpc_result))); | 266 " returned %d\n", static_cast<int>(rpc_result))); |
267 desc[1]->Delete(); | 267 desc[1]->Delete(); |
268 | 268 |
269 return rpc_result; | 269 return rpc_result; |
270 } | 270 } |
271 | 271 |
272 } // namespace plugin | 272 } // namespace plugin |
OLD | NEW |