Add caching of App/Pkg data & use faster way to retrieve this data
[platform/core/security/askuser.git] / src / common / policy / PrivilegePolicy.h
index c22e45b..9f64e82 100644 (file)
@@ -23,6 +23,7 @@
 #include <string>
 #include <vector>
 
+#include <policy/AppInfo.h>
 #include <types/PolicyTypes.h>
 
 namespace AskUser {
@@ -30,7 +31,7 @@ namespace AskUser {
 class PrivilegePolicy {
 public:
     PrivilegePolicy(const std::string &appId, const Privilege &privilege);
-    Policy calculatePolicy();
+    Policy calculatePolicy(AppInfo &appInfo);
     std::vector<Privacy> getAskablePrivacies() const {
         return m_askablePrivacies;
     }