OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_NACL_LOADER_NACL_VALIDATION_QUERY_H_ | 5 #ifndef COMPONENTS_NACL_LOADER_NACL_VALIDATION_QUERY_H_ |
6 #define COMPONENTS_NACL_LOADER_NACL_VALIDATION_QUERY_H_ | 6 #define COMPONENTS_NACL_LOADER_NACL_VALIDATION_QUERY_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "base/basictypes.h" | 12 #include "base/macros.h" |
11 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
12 #include "crypto/hmac.h" | 14 #include "crypto/hmac.h" |
13 | 15 |
14 struct NaClValidationCache; | 16 struct NaClValidationCache; |
15 class NaClValidationDB; | 17 class NaClValidationDB; |
16 class NaClValidationQuery; | 18 class NaClValidationQuery; |
17 | 19 |
18 class NaClValidationQueryContext { | 20 class NaClValidationQueryContext { |
19 public: | 21 public: |
20 NaClValidationQueryContext(NaClValidationDB* db, | 22 NaClValidationQueryContext(NaClValidationDB* db, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 83 |
82 DISALLOW_COPY_AND_ASSIGN(NaClValidationQuery); | 84 DISALLOW_COPY_AND_ASSIGN(NaClValidationQuery); |
83 }; | 85 }; |
84 | 86 |
85 // Create a validation cache interface for use by sel_ldr. | 87 // Create a validation cache interface for use by sel_ldr. |
86 struct NaClValidationCache* CreateValidationCache( | 88 struct NaClValidationCache* CreateValidationCache( |
87 NaClValidationDB* db, const std::string& profile_key, | 89 NaClValidationDB* db, const std::string& profile_key, |
88 const std::string& nacl_version); | 90 const std::string& nacl_version); |
89 | 91 |
90 #endif // COMPONENTS_NACL_LOADER_NACL_VALIDATION_QUERY_H_ | 92 #endif // COMPONENTS_NACL_LOADER_NACL_VALIDATION_QUERY_H_ |
OLD | NEW |