From 63c0354a245de8050db3afed7fb5025e4cbc59ee Mon Sep 17 00:00:00 2001 From: xiafeng Date: Wed, 15 Mar 2023 10:54:35 +0800 Subject: [PATCH] Dummy Implementation for ewk_context_new_with_injected_bundle_path_and_storage_name 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). Currently, null implementation to avoid hbbtv crash issue on M108. Change-Id: Ie3db05f7e8278678bf1a7862b18d476c09316338 Signed-off-by: xiafeng --- tizen_src/ewk/efl_integration/public/ewk_context.cc | 9 +++++++++ .../ewk/efl_integration/public/ewk_context_internal.h | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/tizen_src/ewk/efl_integration/public/ewk_context.cc b/tizen_src/ewk/efl_integration/public/ewk_context.cc index 4e0e4a1..c66aadc 100644 --- a/tizen_src/ewk/efl_integration/public/ewk_context.cc +++ b/tizen_src/ewk/efl_integration/public/ewk_context.cc @@ -109,6 +109,15 @@ Ewk_Context *ewk_context_new_with_injected_bundle_path(const char *path) 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) diff --git a/tizen_src/ewk/efl_integration/public/ewk_context_internal.h b/tizen_src/ewk/efl_integration/public/ewk_context_internal.h index a087de0..42da3b8 100644 --- a/tizen_src/ewk/efl_integration/public/ewk_context_internal.h +++ b/tizen_src/ewk/efl_integration/public/ewk_context_internal.h @@ -488,6 +488,25 @@ EXPORT_API Ewk_Context *ewk_context_new(void); 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 -- 2.7.4