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

Side by Side Diff: src/trusted/plugin/npapi/plugin_npapi.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/plugin_npapi.h ('k') | src/trusted/plugin/npapi/ret_array.cc » ('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 7
8 #include "native_client/src/trusted/plugin/npapi/plugin_npapi.h" 8 #include "native_client/src/trusted/plugin/npapi/plugin_npapi.h"
9 9
10 #include <stdio.h> 10 #include <stdio.h>
11 #include <string.h> 11 #include <string.h>
12 12
13 #include <limits> 13 #include <limits>
14 #include <set> 14 #include <set>
15 15
16 #include "native_client/src/include/checked_cast.h" 16 #include "native_client/src/include/checked_cast.h"
17 #include "native_client/src/include/nacl_macros.h" 17 #include "native_client/src/include/nacl_macros.h"
18 #include "native_client/src/include/nacl_string.h" 18 #include "native_client/src/include/nacl_string.h"
19 #include "native_client/src/include/portability.h" 19 #include "native_client/src/include/portability.h"
20 20
21 #include "native_client/src/shared/npruntime/npmodule.h" 21 #include "native_client/src/shared/npruntime/npmodule.h"
22 22
23 #include "native_client/src/trusted/desc/nacl_desc_wrapper.h" 23 #include "native_client/src/trusted/desc/nacl_desc_wrapper.h"
24 #include "native_client/src/trusted/handle_pass/browser_handle.h" 24 #include "native_client/src/trusted/handle_pass/browser_handle.h"
25 25
26 #include "native_client/src/trusted/plugin/browser_interface.h"
26 #include "native_client/src/trusted/plugin/npapi/async_receive.h" 27 #include "native_client/src/trusted/plugin/npapi/async_receive.h"
27 #include "native_client/src/trusted/plugin/npapi/browser_impl_npapi.h" 28 #include "native_client/src/trusted/plugin/npapi/browser_impl_npapi.h"
28 #include "native_client/src/trusted/plugin/npapi/closure.h" 29 #include "native_client/src/trusted/plugin/npapi/closure.h"
29 #include "native_client/src/trusted/plugin/npapi/multimedia_socket.h" 30 #include "native_client/src/trusted/plugin/npapi/multimedia_socket.h"
30 #include "native_client/src/trusted/plugin/npapi/scriptable_impl_npapi.h" 31 #include "native_client/src/trusted/plugin/npapi/scriptable_impl_npapi.h"
31 #include "native_client/src/trusted/plugin/npapi/video.h" 32 #include "native_client/src/trusted/plugin/npapi/video.h"
32 #include "native_client/src/trusted/plugin/origin.h" 33 #include "native_client/src/trusted/plugin/origin.h"
33 #include "native_client/src/trusted/plugin/srpc/browser_interface.h" 34 #include "native_client/src/trusted/plugin/plugin.h"
34 #include "native_client/src/trusted/plugin/srpc/plugin.h" 35 #include "native_client/src/trusted/plugin/scriptable_handle.h"
35 #include "native_client/src/trusted/plugin/srpc/scriptable_handle.h" 36 #include "native_client/src/trusted/plugin/stream_shm_buffer.h"
36 #include "native_client/src/trusted/plugin/srpc/stream_shm_buffer.h" 37 #include "native_client/src/trusted/plugin/utility.h"
37 #include "native_client/src/trusted/plugin/srpc/utility.h"
38 38
39 namespace { 39 namespace {
40 40
41 static bool identifiers_initialized = false; 41 static bool identifiers_initialized = false;
42 42
43 void InitializeIdentifiers() { 43 void InitializeIdentifiers() {
44 if (identifiers_initialized) { 44 if (identifiers_initialized) {
45 return; 45 return;
46 } 46 }
47 plugin::PluginNpapi::kHrefIdent = NPN_GetStringIdentifier("href"); 47 plugin::PluginNpapi::kHrefIdent = NPN_GetStringIdentifier("href");
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 // It would be nice if the thread interface did not require us to 541 // It would be nice if the thread interface did not require us to
542 // specify a stack size. This is fairly arbitrary. 542 // specify a stack size. This is fairly arbitrary.
543 size_t stack_size = 128 << 10; 543 size_t stack_size = 128 << 10;
544 NaClThreadCreateJoinable(&plugin->receive_thread_, AsyncReceiveThread, args, 544 NaClThreadCreateJoinable(&plugin->receive_thread_, AsyncReceiveThread, args,
545 stack_size); 545 stack_size);
546 plugin->receive_thread_running_ = true; 546 plugin->receive_thread_running_ = true;
547 return true; 547 return true;
548 } 548 }
549 549
550 } // namespace plugin 550 } // namespace plugin
OLDNEW
« no previous file with comments | « src/trusted/plugin/npapi/plugin_npapi.h ('k') | src/trusted/plugin/npapi/ret_array.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698