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

Side by Side Diff: ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h

Issue 10836044: ppapi NaCl trusted plugin: Rename interface because Win build breaks on it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_TRANSLATE_THREAD_H_ 5 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_TRANSLATE_THREAD_H_
6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_TRANSLATE_THREAD_H_ 6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_TRANSLATE_THREAD_H_
7 7
8 #include "native_client/src/include/nacl_macros.h" 8 #include "native_client/src/include/nacl_macros.h"
9 #include "native_client/src/include/nacl_scoped_ptr.h" 9 #include "native_client/src/include/nacl_scoped_ptr.h"
10 #include "native_client/src/include/nacl_string.h" 10 #include "native_client/src/include/nacl_string.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 const nacl::string& soname, 64 const nacl::string& soname,
65 const nacl::string& lib_dependencies); 65 const nacl::string& lib_dependencies);
66 66
67 // Register a reverse service interface which will be shutdown if the 67 // Register a reverse service interface which will be shutdown if the
68 // plugin is shutdown. The reverse service pointer must be available on the 68 // plugin is shutdown. The reverse service pointer must be available on the
69 // main thread because the translation thread could be blocked on SRPC 69 // main thread because the translation thread could be blocked on SRPC
70 // waiting for the translator, which could be waiting on a reverse 70 // waiting for the translator, which could be waiting on a reverse
71 // service call. 71 // service call.
72 // (see also the comments in Plugin::~Plugin about ShutdownSubprocesses, 72 // (see also the comments in Plugin::~Plugin about ShutdownSubprocesses,
73 // but that only handles the main nexe and not the translator nexes.) 73 // but that only handles the main nexe and not the translator nexes.)
74 void RegisterReverseInterface(PluginReverseInterface *interface); 74 void RegisterReverseInterface(PluginReverseInterface *iface);
75 75
76 // Callback to run when tasks are completed or an error has occurred. 76 // Callback to run when tasks are completed or an error has occurred.
77 pp::CompletionCallback report_translate_finished_; 77 pp::CompletionCallback report_translate_finished_;
78 // True if the translation thread and related subprocesses should exit. 78 // True if the translation thread and related subprocesses should exit.
79 bool subprocesses_should_die_; 79 bool subprocesses_should_die_;
80 // Used to guard and publish subprocesses_should_die_. 80 // Used to guard and publish subprocesses_should_die_.
81 struct NaClMutex subprocess_mu_; 81 struct NaClMutex subprocess_mu_;
82 82
83 nacl::scoped_ptr<NaClThread> translate_thread_; 83 nacl::scoped_ptr<NaClThread> translate_thread_;
84 84
85 // Reverse interface to shutdown on SetSubprocessesShouldDie 85 // Reverse interface to shutdown on SetSubprocessesShouldDie
86 PluginReverseInterface* current_rev_interface_; 86 PluginReverseInterface* current_rev_interface_;
87 87
88 // Data about the translation files, owned by the coordinator 88 // Data about the translation files, owned by the coordinator
89 const Manifest* manifest_; 89 const Manifest* manifest_;
90 const Manifest* ld_manifest_; 90 const Manifest* ld_manifest_;
91 TempFile* obj_file_; 91 TempFile* obj_file_;
92 LocalTempFile* nexe_file_; 92 LocalTempFile* nexe_file_;
93 ErrorInfo* coordinator_error_info_; 93 ErrorInfo* coordinator_error_info_;
94 PnaclResources* resources_; 94 PnaclResources* resources_;
95 Plugin* plugin_; 95 Plugin* plugin_;
96 private: 96 private:
97 NACL_DISALLOW_COPY_AND_ASSIGN(PnaclTranslateThread); 97 NACL_DISALLOW_COPY_AND_ASSIGN(PnaclTranslateThread);
98 }; 98 };
99 99
100 } 100 }
101 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_TRANSLATE_THREAD_H_ 101 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_TRANSLATE_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698