| 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 #include "chrome/nacl/nacl_validation_query.h" | 5 #include "components/nacl/loader/nacl_validation_query.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "components/nacl/loader/nacl_validation_db.h" |
| 8 #include "crypto/nss_util.h" | 9 #include "crypto/nss_util.h" |
| 9 #include "chrome/nacl/nacl_validation_db.h" | |
| 10 #include "native_client/src/include/portability.h" | 10 #include "native_client/src/include/portability.h" |
| 11 #include "native_client/src/trusted/validator/nacl_file_info.h" | 11 #include "native_client/src/trusted/validator/nacl_file_info.h" |
| 12 #include "native_client/src/trusted/validator/validation_cache.h" | 12 #include "native_client/src/trusted/validator/validation_cache.h" |
| 13 | 13 |
| 14 NaClValidationQueryContext::NaClValidationQueryContext( | 14 NaClValidationQueryContext::NaClValidationQueryContext( |
| 15 NaClValidationDB* db, | 15 NaClValidationDB* db, |
| 16 const std::string& profile_key, | 16 const std::string& profile_key, |
| 17 const std::string& nacl_version) | 17 const std::string& nacl_version) |
| 18 : db_(db), | 18 : db_(db), |
| 19 profile_key_(profile_key), | 19 profile_key_(profile_key), |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 memset(cache, 0, sizeof(*cache)); | 163 memset(cache, 0, sizeof(*cache)); |
| 164 cache->handle = new NaClValidationQueryContext(db, profile_key, nacl_version); | 164 cache->handle = new NaClValidationQueryContext(db, profile_key, nacl_version); |
| 165 cache->CreateQuery = CreateQuery; | 165 cache->CreateQuery = CreateQuery; |
| 166 cache->AddData = AddData; | 166 cache->AddData = AddData; |
| 167 cache->QueryKnownToValidate = QueryKnownToValidate; | 167 cache->QueryKnownToValidate = QueryKnownToValidate; |
| 168 cache->SetKnownToValidate = SetKnownToValidate; | 168 cache->SetKnownToValidate = SetKnownToValidate; |
| 169 cache->DestroyQuery = DestroyQuery; | 169 cache->DestroyQuery = DestroyQuery; |
| 170 cache->ResolveFileToken = ResolveFileToken; | 170 cache->ResolveFileToken = ResolveFileToken; |
| 171 return cache; | 171 return cache; |
| 172 } | 172 } |
| OLD | NEW |