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

Unified Diff: ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h

Issue 393693004: Pepper: Delete FileDownloader in trusted plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: STL fix Created 6 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 side-by-side diff with in-line comments
Download patch
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().

Powered by Google App Engine
This is Rietveld 408576698