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

Side by Side Diff: src/trusted/desc/nacl_desc_wrapper.h

Issue 550523002: Remove the old "SecureRandom" service, formerly used by get_random_bytes() (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 6 years, 3 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
« no previous file with comments | « src/trusted/desc/nacl_desc_rng.c ('k') | src/trusted/desc/nacl_desc_wrapper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Native Client Authors. All rights reserved. 1 // Copyright (c) 2012 The Native Client Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_WRAPPER_H_ 5 #ifndef NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_WRAPPER_H_
6 #define NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_WRAPPER_H_ 6 #define NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_WRAPPER_H_
7 7
8 #include "native_client/src/include/nacl_base.h" 8 #include "native_client/src/include/nacl_base.h"
9 #include "native_client/src/trusted/desc/nacl_desc_base.h" 9 #include "native_client/src/trusted/desc/nacl_desc_base.h"
10 #include "native_client/src/trusted/desc/nrd_xfer.h" 10 #include "native_client/src/trusted/desc/nrd_xfer.h"
(...skipping 19 matching lines...) Expand all
30 // Create a file descriptor object. 30 // Create a file descriptor object.
31 DescWrapper* MakeFileDesc(int host_os_desc, int mode); 31 DescWrapper* MakeFileDesc(int host_os_desc, int mode);
32 // As with MakeFileDesc, but with quota management. 32 // As with MakeFileDesc, but with quota management.
33 DescWrapper* MakeFileDescQuota(int host_os_desc, int mode, 33 DescWrapper* MakeFileDescQuota(int host_os_desc, int mode,
34 const uint8_t* file_id); 34 const uint8_t* file_id);
35 // Create a DescWrapper from opening a host file. 35 // Create a DescWrapper from opening a host file.
36 DescWrapper* OpenHostFile(const char* fname, int flags, int mode); 36 DescWrapper* OpenHostFile(const char* fname, int flags, int mode);
37 // As with OpenHostFile, but with quota management. 37 // As with OpenHostFile, but with quota management.
38 DescWrapper* OpenHostFileQuota(const char* fname, int flags, int mode, 38 DescWrapper* OpenHostFileQuota(const char* fname, int flags, int mode,
39 const uint8_t* file_id); 39 const uint8_t* file_id);
40 // Create a DescWrapper for a random number generator.
41 DescWrapper* OpenRng();
42 // Create a DescWrapper for the designated invalid descriptor 40 // Create a DescWrapper for the designated invalid descriptor
43 DescWrapper* MakeInvalid(); 41 DescWrapper* MakeInvalid();
44 42
45 // We will doubtless want more specific factory methods. For now, 43 // We will doubtless want more specific factory methods. For now,
46 // we provide a wide-open method. 44 // we provide a wide-open method.
47 DescWrapper* MakeGeneric(struct NaClDesc* desc); 45 DescWrapper* MakeGeneric(struct NaClDesc* desc);
48 // Same as above but unrefs desc in case of failure 46 // Same as above but unrefs desc in case of failure
49 DescWrapper* MakeGenericCleanup(struct NaClDesc* desc); 47 DescWrapper* MakeGenericCleanup(struct NaClDesc* desc);
50 // Utility routine for importing sync socket 48 // Utility routine for importing sync socket
51 DescWrapper* ImportSyncSocketHandle(NaClHandle handle); 49 DescWrapper* ImportSyncSocketHandle(NaClHandle handle);
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 182
185 DescWrapperCommon* common_data_; 183 DescWrapperCommon* common_data_;
186 struct NaClDesc* desc_; 184 struct NaClDesc* desc_;
187 185
188 DISALLOW_COPY_AND_ASSIGN(DescWrapper); 186 DISALLOW_COPY_AND_ASSIGN(DescWrapper);
189 }; 187 };
190 188
191 } // namespace nacl 189 } // namespace nacl
192 190
193 #endif // NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_WRAPPER_H_ 191 #endif // NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_WRAPPER_H_
OLDNEW
« no previous file with comments | « src/trusted/desc/nacl_desc_rng.c ('k') | src/trusted/desc/nacl_desc_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698