Index: ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h |
diff --git a/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h b/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h |
index ed0c7d7268fc5ea6b42d693ed27d6c47cad8f879..60c1cbac09dea73da7eba65ec2c680bf05734657 100644 |
--- a/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h |
+++ b/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h |
@@ -61,7 +61,7 @@ class PnaclTranslateThread { |
void AbortSubprocesses(); |
// Send bitcode bytes to the translator. Called from the main thread. |
- void PutBytes(std::vector<char>* data, int count); |
+ void PutBytes(const void* data, int count); |
// Notify the translator that the end of the bitcode stream has been reached. |
// Called from the main thread. |
@@ -69,6 +69,9 @@ class PnaclTranslateThread { |
int64_t GetCompileTime() const { return compile_time_; } |
+ // Returns true if RunTranslate() has been called, false otherwise. |
+ bool started() const { return plugin_ != NULL; } |
+ |
private: |
// Helper thread entry point for translation. Takes a pointer to |
// PnaclTranslateThread and calls DoTranslate(). |