return Ewk_Context::Create(false,std::string(path));
}
+Ewk_Context *ewk_context_new_with_injected_bundle_path_and_storage_name(const char *path, const char *storage_name)
+{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(path, NULL);
+ LOG(INFO) << "path: " << path << ", storage_name:" << storage_name;
+ LOG_EWK_API_MOCKUP("this is a dummy mockup");
+ // Null Implementation to avoid hbbtv crash issue.
+ return NULL;;
+}
+
void ewk_context_delete(Ewk_Context* context)
{
if (context)
EXPORT_API Ewk_Context *ewk_context_new_with_injected_bundle_path(const char *path);
/**
+ * Creates a new Ewk_Context.
+ *
+ * The returned Ewk_Context object @b should be unref'ed after use.
+ *
+ * @param path path of injected bundle library
+ *
+ * @param storage_name name of storage DB
+ *
+ * @return Ewk_Context object on success or @c NULL on failure
+ *
+ * @see ewk_context_unref
+ * @see ewk_context_new
+ * @This is a temporary API only for HBBTV, It should only be used in M85.
+ * @HBBTV's default DB name is data, HBBTV need to set a new DB name
+ * for the additional context (For HBBTV HD+ scenario).
+ */
+EXPORT_API Ewk_Context *ewk_context_new_with_injected_bundle_path_and_storage_name(const char *path, const char *storage_name);
+
+/**
* @brief Creates a new Ewk_Context in incognito mode.
*
* @param[in] path Path of injected bundle library