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 CHROME_NACL_NACL_VALIDATION_DB_H_ | 5 #ifndef CHROME_NACL_NACL_VALIDATION_DB_H_ |
6 #define CHROME_NACL_NACL_VALIDATION_DB_H_ | 6 #define CHROME_NACL_NACL_VALIDATION_DB_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 | 11 |
12 struct NaClFileToken; | |
13 | |
12 class NaClValidationDB { | 14 class NaClValidationDB { |
13 public: | 15 public: |
14 NaClValidationDB() {} | 16 NaClValidationDB() {} |
15 virtual ~NaClValidationDB() {} | 17 virtual ~NaClValidationDB() {} |
16 | 18 |
17 virtual bool QueryKnownToValidate(const std::string& signature) = 0; | 19 virtual bool QueryKnownToValidate(const std::string& signature) = 0; |
18 virtual void SetKnownToValidate(const std::string& signature) = 0; | 20 virtual void SetKnownToValidate(const std::string& signature) = 0; |
21 virtual bool ResolveFileToken(struct NaClFileToken *file_token, | |
Mark Seaborn
2013/05/24 20:21:58
Fix "*" spacing style
Nick Bray (chromium)
2013/05/24 21:35:24
Done.
| |
22 int32* fd, std::string* path) = 0; | |
19 | 23 |
20 private: | 24 private: |
21 DISALLOW_COPY_AND_ASSIGN(NaClValidationDB); | 25 DISALLOW_COPY_AND_ASSIGN(NaClValidationDB); |
22 }; | 26 }; |
23 | 27 |
24 #endif // CHROME_NACL_NACL_VALIDATION_DB_H_ | 28 #endif // CHROME_NACL_NACL_VALIDATION_DB_H_ |
OLD | NEW |