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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The Native Client Authors. All rights reserved. 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 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_REVERSE_SERVICE_NACL_FILE_INFO_H_ 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_NACL_FILE_INFO_H_
8 #define NATIVE_CLIENT_SRC_TRUSTED_REVERSE_SERVICE_NACL_FILE_INFO_H_ 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_NACL_FILE_INFO_H_
9
10 #include "native_client/src/include/nacl_base.h"
11 #include "native_client/src/include/portability.h"
12
13 EXTERN_C_BEGIN
14 9
15 /* 10 /*
16 * NaClFileToken is a single-use nonce that the NaCl process can use to query 11 * TODO(jvoung): Moving this to src/public/nacl_file_info.h.
17 * the browser process for trusted information about a file. lo == 0 && hi == 0 12 * This copy is left here to avoid a complicated NaCl -> Chrome
18 * indicates the token is invalid and no additional information is available. 13 * DEPS roll. Remove this copy once DEPS'ed in a Chrome users
14 * refer to the src/public copy instead of this copy.
19 */ 15 */
20 struct NaClFileToken {
21 uint64_t lo;
22 uint64_t hi;
23 };
24 16
25 struct NaClFileInfo { 17 #include "native_client/src/public/nacl_file_info.h"
26 /* desc is either a Unix file descriptor or a Windows file handle. */
27 int32_t desc;
28 struct NaClFileToken file_token;
29 };
30 18
31 EXTERN_C_END 19 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_NACL_FILE_INFO_H_ */
32
33 #endif /* NATIVE_CLIENT_SRC_TRUSTED_REVERSE_SERVICE_NACL_FILE_INFO_H_ */
OLDNEW
« 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