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

Side by Side Diff: src/trusted/plugin/npapi/multimedia_socket.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 | « src/trusted/plugin/npapi/multimedia_socket.h ('k') | src/trusted/plugin/npapi/npapi_native.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 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
263 METHOD_CALL, 263 METHOD_CALL,
264 &params); 264 &params);
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
OLDNEW
« no previous file with comments | « src/trusted/plugin/npapi/multimedia_socket.h ('k') | src/trusted/plugin/npapi/npapi_native.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698