Update Injected bundle interfeace ( int -> const char* )
authorSeungkeun Lee <sngn.lee@samsung.com>
Fri, 15 May 2015 09:27:46 +0000 (18:27 +0900)
committerSeungkeun Lee <sngn.lee@samsung.com>
Fri, 15 May 2015 09:27:46 +0000 (18:27 +0900)
Change-Id: I406246af36ce6c58bf6932bbd827bb1bbf416859

src/bundle/injected_bundle.cc

index 21df177566f5435374e6dd2913dea65d9a549767..7347e528874d57701d24400023106d79ef04b8dd 100755 (executable)
 #include "common/string_utils.h"
 #include "bundle/extension_renderer_controller.h"
 
-extern "C" void DynamicSetWidgetInfo(int /*widget_id*/) {
-  LOGGER(DEBUG) << "InjectedBundle::DynamicSetWidgetInfo !!";
+extern "C" void DynamicSetWidgetInfo(const char* tizen_id) {
+  LOGGER(DEBUG) << "InjectedBundle::DynamicSetWidgetInfo !!" << tizen_id;
 }
 
-extern "C" void DynamicPluginStartSession(int /*widget_id*/,
+extern "C" void DynamicPluginStartSession(const char* tizen_id,
                                           v8::Handle<v8::Context> context,
                                           int /*routing_handle*/,
                                           double /*scale*/,
                                           const char* uuid,
                                           const char* /*theme*/,
                                           const char* base_url) {
-  LOGGER(DEBUG) << "InjectedBundle::DynamicPluginStartSession !!";
+  LOGGER(DEBUG) << "InjectedBundle::DynamicPluginStartSession !!" << tizen_id;
   if (base_url == NULL || wrt::utils::StartsWith(base_url, "http")) {
     LOGGER(ERROR) << "External url not allowed plugin loading.";
     return;
@@ -35,8 +35,8 @@ extern "C" void DynamicPluginStartSession(int /*widget_id*/,
 }
 
 extern "C" void DynamicPluginStopSession(
-    int /*widget_id*/, v8::Handle<v8::Context> context) {
-  LOGGER(DEBUG) << "InjectedBundle::DynamicPluginStopSession !!";
+    const char* tizen_id, v8::Handle<v8::Context> context) {
+  LOGGER(DEBUG) << "InjectedBundle::DynamicPluginStopSession !!" << tizen_id;
 
   wrt::ExtensionRendererController& controller =
       wrt::ExtensionRendererController::GetInstance();
@@ -44,13 +44,13 @@ extern "C" void DynamicPluginStopSession(
 }
 
 extern "C" void DynamicUrlParsing(
-    std::string* old_url, std::string* new_url, int /*widget_id*/) {
-  LOGGER(DEBUG) << "InjectedBundle::DynamicUrlParsing !!";
+    std::string* old_url, std::string* new_url, const char* tizen_id) {
+  LOGGER(DEBUG) << "InjectedBundle::DynamicUrlParsing !!" << tizen_id;
   *new_url = *old_url;
 }
 
-extern "C" void DynamicDatabaseAttach(int /*attach*/) {
-  LOGGER(DEBUG) << "InjectedBundle::DynamicDatabaseAttach !!";
+extern "C" void DynamicDatabaseAttach(const char* tizen_id) {
+  LOGGER(DEBUG) << "InjectedBundle::DynamicDatabaseAttach !!" << tizen_id;
 }
 
 extern "C" void DynamicOnIPCMessage(const Ewk_IPC_Wrt_Message_Data& /*data*/) {