Skip the security registration if it is unnecessary
[platform/core/appfw/app-installers.git] / src / common / step / security / step_update_security.h
1 // Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by a apache 2.0 license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMMON_STEP_SECURITY_STEP_UPDATE_SECURITY_H_
6 #define COMMON_STEP_SECURITY_STEP_UPDATE_SECURITY_H_
7
8 #include <manifest_parser/utils/logging.h>
9
10 #include "common/step/step.h"
11
12 namespace common_installer {
13 namespace security {
14
15 class StepUpdateSecurity : public Step {
16  public:
17   using Step::Step;
18
19   Status process() override;
20   Status undo() override;
21   Status clean() override { return Status::OK; }
22   Status precheck() override { return Status::OK; }
23
24  private:
25   void AddRecoveryInfo();
26
27   STEP_NAME(UpdateSecurity)
28 };
29
30 }  // namespace security
31 }  // namespace common_installer
32
33 #endif  // COMMON_STEP_SECURITY_STEP_UPDATE_SECURITY_H_