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

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

Issue 177113009: Support non-SFI mode in NaCl manifest file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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/plugin.h
diff --git a/ppapi/native_client/src/trusted/plugin/plugin.h b/ppapi/native_client/src/trusted/plugin/plugin.h
index 04b058d9615c45650ca293868c542ab967de096c..c19bc4cce2748dda2b5dad431dcf699665d8caf1 100644
--- a/ppapi/native_client/src/trusted/plugin/plugin.h
+++ b/ppapi/native_client/src/trusted/plugin/plugin.h
@@ -89,6 +89,7 @@ class Plugin : public pp::Instance {
//
// Updates nacl_module_origin() and nacl_module_url().
void LoadNaClModule(nacl::DescWrapper* wrapper,
+ bool uses_nonsfi_mode,
bool enable_dyncode_syscalls,
bool enable_exception_handling,
bool enable_crash_throttling,
@@ -179,6 +180,9 @@ class Plugin : public pp::Instance {
// interaction with the page.
DONE = 4
};
+
+ bool uses_nonsfi_mode() const { return uses_nonsfi_mode_; }
+ void set_uses_nonsfi_mode(bool val) { uses_nonsfi_mode_ = val; }
bool nexe_error_reported() const { return nexe_error_reported_; }
void set_nexe_error_reported(bool val) {
nexe_error_reported_ = val;
@@ -388,6 +392,7 @@ class Plugin : public pp::Instance {
nacl::string plugin_base_url_;
nacl::string manifest_base_url_;
nacl::string manifest_url_;
+ bool uses_nonsfi_mode_;
ReadyState nacl_ready_state_;
bool nexe_error_reported_; // error or crash reported

Powered by Google App Engine
This is Rietveld 408576698