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

Side by Side Diff: components/nacl/loader/nacl_validation_db.h

Issue 572973002: NaCl: Simpler validation for main nexe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years 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 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_DB_H_ 5 #ifndef COMPONENTS_NACL_LOADER_NACL_VALIDATION_DB_H_
6 #define COMPONENTS_NACL_LOADER_NACL_VALIDATION_DB_H_ 6 #define COMPONENTS_NACL_LOADER_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; 12 struct NaClFileToken;
13 13
14 class NaClValidationDB { 14 class NaClValidationDB {
15 public: 15 public:
16 NaClValidationDB() {} 16 NaClValidationDB() {}
17 virtual ~NaClValidationDB() {} 17 virtual ~NaClValidationDB() {}
18 18
19 virtual bool QueryKnownToValidate(const std::string& signature) = 0; 19 virtual bool QueryKnownToValidate(const std::string& signature) = 0;
20 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,
22 int32* fd, std::string* path) = 0;
23 21
24 private: 22 private:
25 DISALLOW_COPY_AND_ASSIGN(NaClValidationDB); 23 DISALLOW_COPY_AND_ASSIGN(NaClValidationDB);
26 }; 24 };
27 25
28 #endif // COMPONENTS_NACL_LOADER_NACL_VALIDATION_DB_H_ 26 #endif // COMPONENTS_NACL_LOADER_NACL_VALIDATION_DB_H_
OLDNEW
« no previous file with comments | « components/nacl/loader/nacl_listener.cc ('k') | components/nacl/loader/nacl_validation_query.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698