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

Unified Diff: src/trusted/validator/nacl_file_info.h

Issue 261683002: Make a NaClDesc ctor for creating descs from NaClFileInfo. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: make it posix file descriptor Created 6 years, 7 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 | « src/trusted/sel_universal/reverse_emulate.cc ('k') | tests/sel_main_chrome/sel_main_chrome_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator/nacl_file_info.h
diff --git a/src/trusted/validator/nacl_file_info.h b/src/trusted/validator/nacl_file_info.h
index f93796bac2cbf553071a40899ac1d563310303f7..e8eee000c3e5f98807ad8d638879887ef553cedb 100644
--- a/src/trusted/validator/nacl_file_info.h
+++ b/src/trusted/validator/nacl_file_info.h
@@ -4,30 +4,16 @@
* found in the LICENSE file.
*/
-#ifndef NATIVE_CLIENT_SRC_TRUSTED_REVERSE_SERVICE_NACL_FILE_INFO_H_
-#define NATIVE_CLIENT_SRC_TRUSTED_REVERSE_SERVICE_NACL_FILE_INFO_H_
-
-#include "native_client/src/include/nacl_base.h"
-#include "native_client/src/include/portability.h"
-
-EXTERN_C_BEGIN
+#ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_NACL_FILE_INFO_H_
+#define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_NACL_FILE_INFO_H_
/*
- * NaClFileToken is a single-use nonce that the NaCl process can use to query
- * the browser process for trusted information about a file. lo == 0 && hi == 0
- * indicates the token is invalid and no additional information is available.
+ * TODO(jvoung): Moving this to src/public/nacl_file_info.h.
+ * This copy is left here to avoid a complicated NaCl -> Chrome
+ * DEPS roll. Remove this copy once DEPS'ed in a Chrome users
+ * refer to the src/public copy instead of this copy.
*/
-struct NaClFileToken {
- uint64_t lo;
- uint64_t hi;
-};
-
-struct NaClFileInfo {
- /* desc is either a Unix file descriptor or a Windows file handle. */
- int32_t desc;
- struct NaClFileToken file_token;
-};
-EXTERN_C_END
+#include "native_client/src/public/nacl_file_info.h"
-#endif /* NATIVE_CLIENT_SRC_TRUSTED_REVERSE_SERVICE_NACL_FILE_INFO_H_ */
+#endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_NACL_FILE_INFO_H_ */
« no previous file with comments | « src/trusted/sel_universal/reverse_emulate.cc ('k') | tests/sel_main_chrome/sel_main_chrome_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698