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

Side by Side Diff: components/nacl/loader/nacl_validation_query.cc

Issue 16881004: Move chrome/nacl to components/nacl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Create a zygote folder Created 7 years, 5 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
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « components/nacl/loader/nacl_validation_query.h ('k') | components/nacl/loader/nacl_validation_query_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698