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

Unified Diff: courgette/encoded_program.h

Issue 1629703002: [Courgette] Refactor: Manage AssemblyProgram and EncodedProgram with scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix courgette_fuzzer in libfuzzer. Created 4 years, 11 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
« no previous file with comments | « courgette/encode_decode_unittest.cc ('k') | courgette/encoded_program.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/encoded_program.h
diff --git a/courgette/encoded_program.h b/courgette/encoded_program.h
index e89676d64024de33116007b313adb34c367c04bd..6ea3e22c60d3a5393949ae7e17008783d23ab099 100644
--- a/courgette/encoded_program.h
+++ b/courgette/encoded_program.h
@@ -11,6 +11,7 @@
#include <vector>
#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
#include "courgette/disassembler.h"
#include "courgette/label_manager.h"
#include "courgette/memory_allocator.h"
@@ -140,5 +141,11 @@ class EncodedProgram {
DISALLOW_COPY_AND_ASSIGN(EncodedProgram);
};
+// Deserializes program from a stream set to |*output|. Returns C_OK if
+// successful, otherwise assigns |*output| to null and returns an error status.
+Status ReadEncodedProgram(SourceStreamSet* source,
+ scoped_ptr<EncodedProgram>* output);
+
} // namespace courgette
+
#endif // COURGETTE_ENCODED_PROGRAM_H_
« no previous file with comments | « courgette/encode_decode_unittest.cc ('k') | courgette/encoded_program.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698