Mount gadget resource paths for NUIGadget
[platform/core/appfw/launchpad.git] / src / launchpad-process-pool / loader_context.hh
index feaf15d..814ff4b 100644 (file)
@@ -32,6 +32,7 @@
 #include "launchpad-process-pool/cpu_checker.hh"
 #include "launchpad-process-pool/loader_info.hh"
 #include "launchpad-process-pool/launcher_info.hh"
+#include "launchpad-process-pool/loader_mount.hh"
 
 namespace launchpad {
 
@@ -46,6 +47,7 @@ class LoaderContext : public std::enable_shared_from_this<LoaderContext>,
     Builder& SetLoaderId(int loader_id);
     Builder& SetCallerPid(pid_t caller_pid);
     Builder& SetActive();
+    Builder& SetLoaderMount(std::shared_ptr<LoaderMount> loader_mount);
 
     virtual operator LoaderContext*();
 
@@ -54,6 +56,7 @@ class LoaderContext : public std::enable_shared_from_this<LoaderContext>,
     int loader_id_ = 0;
     pid_t caller_pid_ = getpid();
     bool activated_ = true;
+    std::shared_ptr<LoaderMount> loader_mount_;
   };
 
   class IEvent {
@@ -65,7 +68,8 @@ class LoaderContext : public std::enable_shared_from_this<LoaderContext>,
   };
 
   LoaderContext(std::shared_ptr<LoaderInfo> loader_info, int loader_id,
-      pid_t caller_pid, bool activated);
+                pid_t caller_pid, bool activated,
+                std::shared_ptr<LoaderMount> loader_mount);
   virtual ~LoaderContext();
 
   virtual void Listen();
@@ -136,6 +140,7 @@ class LoaderContext : public std::enable_shared_from_this<LoaderContext>,
   int loader_id_;
   pid_t caller_pid_;
   bool activated_;
+  std::shared_ptr<LoaderMount> loader_mount_;
   std::unique_ptr<CPUChecker> cpu_checker_;
   unsigned int score_;
   std::string loader_extra_;