bool NotificationPresenterImpl::show(PassRefPtr<Notification> notification)
{
    WebCore::Notification* notify = notification.get();
    ScriptExecutionContext* sec = notify->scriptExecutionContext();
    String originStr = sec->securityOrigin()->toString();
    ALOGV("Inside NotificationPresenterImpl::show notification pointer is %u and ScriptExecutionContext is %u", notify, sec);
    s_counter++;
    s_notificationMap.set(s_counter, notification);

    RefPtr<Notification> notificationptr = s_notificationMap.get(s_counter);
    ALOGV("NotificationPresenterImpl::show with res as %d, size as %d ",
        s_notificationMap.isEmpty(), s_notificationMap.size());

    KURL iconURL = notify->iconURL();
    String iconURLStr = iconURL.string();
    NotificationContents notcontent = notify->contents();
    String titleStr = notcontent.title();
    String bodyStr = notcontent.body();
    ALOGV("NotificationPresenterImpl::show is ICONURL is %s, COUNTER is %d ", iconURLStr.utf8().data(), s_counter);

    bool allow = s_notificationPermissions.get(originStr);
    if (allow || m_notificationState == NotificationPresenterImpl::AlwaysON )
         m_webViewCore->notificationManagerShow(iconURLStr, titleStr, bodyStr, s_counter);

    return true;
}