| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_NACL_NACL_VALIDATION_DB_H_ | |
| 6 #define CHROME_NACL_NACL_VALIDATION_DB_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 | |
| 12 struct NaClFileToken; | |
| 13 | |
| 14 class NaClValidationDB { | |
| 15 public: | |
| 16 NaClValidationDB() {} | |
| 17 virtual ~NaClValidationDB() {} | |
| 18 | |
| 19 virtual bool QueryKnownToValidate(const std::string& signature) = 0; | |
| 20 virtual void SetKnownToValidate(const std::string& signature) = 0; | |
| 21 virtual bool ResolveFileToken(struct NaClFileToken* file_token, | |
| 22 int32* fd, std::string* path) = 0; | |
| 23 | |
| 24 private: | |
| 25 DISALLOW_COPY_AND_ASSIGN(NaClValidationDB); | |
| 26 }; | |
| 27 | |
| 28 #endif // CHROME_NACL_NACL_VALIDATION_DB_H_ | |
| OLD | NEW |