Upstream version 9.37.197.0
[platform/framework/web/crosswalk.git] / src / xwalk / application / common / installer / tizen / signature_validator.h
1 // Copyright (c) 2013 Intel Corporation. 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 XWALK_APPLICATION_COMMON_INSTALLER_TIZEN_SIGNATURE_VALIDATOR_H_
6 #define XWALK_APPLICATION_COMMON_INSTALLER_TIZEN_SIGNATURE_VALIDATOR_H_
7
8 #include "base/files/file_path.h"
9
10 namespace xwalk {
11 namespace application {
12
13 class SignatureValidator {
14  public:
15   enum Status {
16     UNTRUSTED,
17     VALID,
18     INVALID
19   };
20
21   static Status Check(const base::FilePath& widget_path);
22
23  private:
24   DISALLOW_COPY_AND_ASSIGN(SignatureValidator);
25 };
26
27 }  // namespace application
28 }  // namespace xwalk
29
30 #endif  // XWALK_APPLICATION_COMMON_INSTALLER_TIZEN_SIGNATURE_VALIDATOR_H_