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

Side by Side Diff: chrome/nacl/nacl_validation_db.h

Issue 14750007: NaCl: enable meta-based validation for shared libraries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More edits Created 7 years, 7 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 | Annotate | Revision Log
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 #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 class NaClValidationDB { 12 class NaClValidationDB {
13 public: 13 public:
14 NaClValidationDB() {} 14 NaClValidationDB() {}
15 virtual ~NaClValidationDB() {} 15 virtual ~NaClValidationDB() {}
16 16
17 virtual bool QueryKnownToValidate(const std::string& signature) = 0; 17 virtual bool QueryKnownToValidate(const std::string& signature) = 0;
18 virtual void SetKnownToValidate(const std::string& signature) = 0; 18 virtual void SetKnownToValidate(const std::string& signature) = 0;
19 virtual bool ResolveFileNonce(uint64 nonce, int32* fd,
20 std::string* path) = 0;
19 21
20 private: 22 private:
21 DISALLOW_COPY_AND_ASSIGN(NaClValidationDB); 23 DISALLOW_COPY_AND_ASSIGN(NaClValidationDB);
22 }; 24 };
23 25
24 #endif // CHROME_NACL_NACL_VALIDATION_DB_H_ 26 #endif // CHROME_NACL_NACL_VALIDATION_DB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698