Add features to download images over http protocol.
[platform/core/uifw/dali-adaptor.git] / platform-abstractions / slp / resource-loader / resource-thread-base.h
index 4dab9d7..ae5aadd 100644 (file)
@@ -48,6 +48,8 @@ public:
   {
     /** Pull a resource out of the platform's file system. */
     RequestLoad,
+    /** Pull a resource over http protocol. */
+    RequestDownload,
     /** Pull a resource out of a memory buffer. */
     RequestDecode,
     /** Push a resource's data out to the file system. */
@@ -127,6 +129,12 @@ protected:
   virtual void Load(const Integration::ResourceRequest& request) = 0;
 
   /**
+   * Download a resource
+   * @param[in] request  The requested resource/file url and attributes
+   */
+  virtual void Download(const Integration::ResourceRequest& request);
+
+  /**
    * Decode a resource exactly as if it were being loaded but source its data
    * from a memory buffer attached directly to the request object.
    * @param[in] request  The requested resource data and attributes