OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium 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_PLUGIN_LOCAL_TEMP_FILE_H_ | 5 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_LOCAL_TEMP_FILE_H_ |
6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_LOCAL_TEMP_FILE_H_ | 6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_LOCAL_TEMP_FILE_H_ |
7 | 7 |
8 #include "native_client/src/include/nacl_macros.h" | 8 #include "native_client/src/include/nacl_macros.h" |
9 #include "native_client/src/include/nacl_string.h" | 9 #include "native_client/src/include/nacl_string.h" |
10 #include "native_client/src/trusted/desc/nacl_desc_rng.h" | 10 #include "native_client/src/trusted/desc/nacl_desc_rng.h" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 struct NaClDescRng *rng_desc_; | 121 struct NaClDescRng *rng_desc_; |
122 // An identifier string used for quota request processing. The quota | 122 // An identifier string used for quota request processing. The quota |
123 // interface needs a string that is unique per sel_ldr instance only, so | 123 // interface needs a string that is unique per sel_ldr instance only, so |
124 // the identifiers can be reused between runs of the translator, start-ups of | 124 // the identifiers can be reused between runs of the translator, start-ups of |
125 // the browser, etc. | 125 // the browser, etc. |
126 uint8_t identifier_[16]; | 126 uint8_t identifier_[16]; |
127 // A counter to dole out unique identifiers. | 127 // A counter to dole out unique identifiers. |
128 static uint32_t next_identifier; | 128 static uint32_t next_identifier; |
129 }; | 129 }; |
130 | 130 |
131 } // namespace plugin | 131 } // namespace plugin |
132 | 132 |
133 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_LOCAL_TEMP_FILE_H_ | 133 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_LOCAL_TEMP_FILE_H_ |
OLD | NEW |