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

Unified Diff: src/trusted/service_runtime/sel_ldr.h

Issue 12600034: Provide metadata to validator to allow faster caching. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: First fixes Created 7 years, 9 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: src/trusted/service_runtime/sel_ldr.h
diff --git a/src/trusted/service_runtime/sel_ldr.h b/src/trusted/service_runtime/sel_ldr.h
index 0d32bb914392d28901e09d17046277d28ebf674e..be49ecee61e093384527a9c5382dc47babd83844 100644
--- a/src/trusted/service_runtime/sel_ldr.h
+++ b/src/trusted/service_runtime/sel_ldr.h
@@ -73,6 +73,7 @@ struct NaClReverseQuotaInterface;
struct NaClSignalContext;
struct NaClThreadInterface; /* see sel_ldr_thread_interface.h */
struct NaClValidationCache;
+struct NaClValidationMetadata;
struct NaClDebugCallbacks {
void (*thread_create_hook)(struct NaClAppThread *natp);
@@ -461,8 +462,10 @@ NaClErrorCode NaClAppLoadFileAslr(struct Gio *gp,
enum NaClAslrMode aslr_mode) NACL_WUR;
-NaClErrorCode NaClAppLoadFileDynamically(struct NaClApp *nap,
- struct Gio *gio_file) NACL_WUR;
+NaClErrorCode NaClAppLoadFileDynamically(
+ struct NaClApp *nap,
+ struct Gio *gio_file,
+ struct NaClValidationMetadata *metadata) NACL_WUR;
void NaClAppPrintDetails(struct NaClApp *nap,
struct Gio *gp);
@@ -473,7 +476,8 @@ NaClErrorCode NaClLoadImage(struct Gio *gp,
int NaClValidateCode(struct NaClApp *nap,
uintptr_t guest_addr,
uint8_t *data,
- size_t size) NACL_WUR;
+ size_t size,
+ const struct NaClValidationMetadata *metadata) NACL_WUR;
/*
* Validates that the code found at data_old can safely be replaced with

Powered by Google App Engine
This is Rietveld 408576698