ffb4584c98b8015f7242dc6d3c3943b645729de8
[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 <set>
9 #include <string>
10
11 #include "base/files/file_path.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "xwalk/application/common/installer/signature_data.h"
14 #include "xwalk/application/common/signature_types.h"
15
16 namespace xwalk {
17 namespace application {
18
19 class SignatureValidator {
20  public:
21   enum Status {
22     UNTRUSTED,
23     VALID,
24     INVALID
25   };
26
27   static Status Check(const base::FilePath& widget_path);
28
29  private:
30   DISALLOW_COPY_AND_ASSIGN(SignatureValidator);
31 };
32
33 }  // namespace application
34 }  // namespace xwalk
35
36 #endif  // XWALK_APPLICATION_COMMON_INSTALLER_TIZEN_SIGNATURE_VALIDATOR_H_