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

Side by Side Diff: src/trusted/validator/validation_metadata.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, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2013 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_VALIDATION_METADATA_H__
8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_VALIDATION_METADATA_H__
9
10 #include <stddef.h>
11 #include <time.h>
12
13 #include "native_client/src/include/nacl_base.h"
14
15 EXTERN_C_BEGIN
16
17 /*
18 * Note: this values in this enum are written to the cache, so changing them
19 * will implicitly invalidate cache entries.
20 */
21 typedef enum NaClCodeIdentityType {
22 NaClCodeIdentityData = 0,
23 NaClCodeIdentityFile = 1,
24 NaClCodeIdentityMax
25 } NaClCodeIdentityType;
26
27 struct NaClValidationMetadata {
28 NaClCodeIdentityType identity_type;
29 int64_t code_offset;
30 const char* file_name;
31 size_t file_name_length;
32 int64_t file_size;
33 time_t mtime;
34 };
35
36 EXTERN_C_END
37
38 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_VALIDATION_METADATA_H__ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698