From e552bb8868c0dd3e4fa827a8fd9f648df1a1c006 Mon Sep 17 00:00:00 2001 From: "hs0219.yang" Date: Tue, 23 Apr 2013 18:11:54 +0900 Subject: [PATCH] Change log for secure Change-Id: If9bb3b44c940fd2080fc90b4d60ab8f4f331a8f5 Signed-off-by: hs0219.yang --- src/FWebWebBookmark.cpp | 4 ++-- src/controls/FWebCtrlWeb.cpp | 8 ++++---- src/controls/FWebCtrl_WebDataHandler.cpp | 2 +- src/controls/FWebCtrl_WebImpl.cpp | 14 +++++++------- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/FWebWebBookmark.cpp b/src/FWebWebBookmark.cpp index 84bad03..0b23161 100755 --- a/src/FWebWebBookmark.cpp +++ b/src/FWebWebBookmark.cpp @@ -104,7 +104,7 @@ WebBookmark::AddBookmark(const String& title, const String& url, RecordId& bookm r = __pWebBookmarkImpl->AddBookmark(title, url, parentId, bookmarkId); SysTryReturn(NID_WEB, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r)); - SysLog(NID_WEB, "The current value of title is %ls, url is %ls, parentId is %d", title.GetPointer(), url.GetPointer(), parentId); + SysSecureLog(NID_WEB, "The current value of title is %ls, url is %ls, parentId is %d", title.GetPointer(), url.GetPointer(), parentId); return E_SUCCESS; } @@ -123,7 +123,7 @@ WebBookmark::SetFavicon(RecordId bookmarkId, const Bitmap& favicon) r = __pWebBookmarkImpl->SetFavicon(bookmarkId, favicon); SysTryReturn(NID_WEB, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r)); - SysLog(NID_WEB, "The current value of bookmarkId is %d", bookmarkId); + SysSecureLog(NID_WEB, "The current value of bookmarkId is %d", bookmarkId); return E_SUCCESS; } diff --git a/src/controls/FWebCtrlWeb.cpp b/src/controls/FWebCtrlWeb.cpp index d1eeb6a..6a595fc 100755 --- a/src/controls/FWebCtrlWeb.cpp +++ b/src/controls/FWebCtrlWeb.cpp @@ -117,7 +117,7 @@ Web::LoadUrl(const String& url) r = pWebImpl->LoadUrl(url); SysTryReturnVoidResult(NID_WEB_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r)); - SysLog(NID_WEB_CTRL, "The current value of url is %ls", url.GetPointer()); + SysSecureLog(NID_WEB_CTRL, "The current value of url is %ls", url.GetPointer()); } @@ -136,7 +136,7 @@ Web::LoadUrl(const String& url, const HttpHeader& header) r = pWebImpl->LoadUrl(url, header); SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r)); - SysLog(NID_WEB_CTRL, "The current value of url is %ls", url.GetPointer()); + SysSecureLog(NID_WEB_CTRL, "The current value of url is %ls", url.GetPointer()); return E_SUCCESS; } @@ -154,7 +154,7 @@ Web::LoadUrlWithPostRequest(const String& url, const HttpHeader& header, const B r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED); SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] The application is not permitted to call this method.", GetErrorMessage(r)); - SysLog(NID_WEB_CTRL, "The current value of url is %ls, header is %d, body is %ls", url.GetPointer(), &header, (char*) body.GetPointer()); + SysSecureLog(NID_WEB_CTRL, "The current value of url is %ls, header is %d, body is %ls", url.GetPointer(), &header, (char*) body.GetPointer()); r = pWebImpl->LoadUrlWithPostRequest(url, header, body); SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r)); @@ -179,7 +179,7 @@ Web::LoadData(const String& baseUrl, const ByteBuffer& content, const String& mi r = pWebImpl->LoadData(baseUrl, content, mime, encoding); SysTryReturnVoidResult(NID_WEB_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r)); - SysLog(NID_WEB_CTRL, "baseUrl : %ls, content : %ls, mime : %ls, encoding : %ls", baseUrl.GetPointer(), reinterpret_cast < const char* >(content.GetPointer()), mime.GetPointer(), encoding.GetPointer()); + SysSecureLog(NID_WEB_CTRL, "baseUrl : %ls, content : %ls, mime : %ls, encoding : %ls", baseUrl.GetPointer(), reinterpret_cast < const char* >(content.GetPointer()), mime.GetPointer(), encoding.GetPointer()); } diff --git a/src/controls/FWebCtrl_WebDataHandler.cpp b/src/controls/FWebCtrl_WebDataHandler.cpp index 6c8b720..b3d5d91 100755 --- a/src/controls/FWebCtrl_WebDataHandler.cpp +++ b/src/controls/FWebCtrl_WebDataHandler.cpp @@ -60,7 +60,7 @@ _WebDataHandler::~_WebDataHandler(void) result _WebDataHandler::StartDownload(const String& url) { - SysLog(NID_WEB_CTRL, "The current value of url is %ls", url.GetPointer()); + SysSecureLog(NID_WEB_CTRL, "The current value of url is %ls", url.GetPointer()); SysTryReturnResult(NID_WEB_CTRL, __pHttpSession.get() == null, E_INVALID_OPERATION, "[%s] Already Downloading is in progress.", GetErrorMessage(E_INVALID_OPERATION)); diff --git a/src/controls/FWebCtrl_WebImpl.cpp b/src/controls/FWebCtrl_WebImpl.cpp index 919f771..00f106b 100755 --- a/src/controls/FWebCtrl_WebImpl.cpp +++ b/src/controls/FWebCtrl_WebImpl.cpp @@ -779,7 +779,7 @@ OnLoadingRequested(void* pUserData, Evas_Object* pView, void* pEventInfo) SysAssertf(pImpl && pPolicy, "Failed to request"); String url(ewk_policy_decision_url_get(pPolicy)); - SysLog(NID_WEB_CTRL, "The current value of url is %ls", url.GetPointer()); + SysSecureLog(NID_WEB_CTRL, "The current value of url is %ls", url.GetPointer()); if (url == L"about:blank") { @@ -984,7 +984,7 @@ OnWebDataReceived(void* pUserData, Evas_Object* pView, void* pEventInfo) const char* pUrl = ewk_policy_decision_url_get(pPolicy); int code = ewk_policy_decision_response_status_code_get(pPolicy); String mime(ewk_policy_decision_response_mime_get(pPolicy)); - SysLog(NID_WEB_CTRL, "url : %s, mime : %ls, code : %d", pUrl, mime.GetPointer(), code); + SysSecureLog(NID_WEB_CTRL, "url : %s, mime : %ls, code : %d", pUrl, mime.GetPointer(), code); ILoadingListener* pLoadingListener = pImpl->GetLoadingListener(); @@ -1269,7 +1269,7 @@ OnDidStartDownloadCallback(const char* pUrl, void* pUserData) _WebImpl* pImpl = reinterpret_cast< _WebImpl* >(pUserData); SysAssertf(pUrl && pImpl != null, "Failed to request"); - SysLog(NID_WEB_CTRL, "The current value of url is %s", pUrl); + SysSecureLog(NID_WEB_CTRL, "The current value of url is %s", pUrl); } @@ -2525,7 +2525,7 @@ _WebImpl::GetBackForwardListN(void) const url = ewk_history_item_uri_get(pEwkItem); title = ewk_history_item_title_get(pEwkItem); - SysLog(NID_WEB_CTRL, "The current value of url is %s, title is %s", url.GetPointer(), title.GetPointer()); + SysSecureLog(NID_WEB_CTRL, "The current value of url is %s, title is %s", url.GetPointer(), title.GetPointer()); pHistoryItemImpl->SetHistoryItem(url, title); @@ -2838,7 +2838,7 @@ _WebImpl::GetElementByPointN(const Point& point) const String tagName(ewk_hit_test_tag_name_get(pEwkHitTest)); String nodeValue(ewk_hit_test_node_value_get(pEwkHitTest)); - SysLog(NID_WEB_CTRL, "The current value of url is %ls, tag is %ls, value is %ls", url.GetPointer(), tagName.GetPointer(), nodeValue.GetPointer()); + SysSecureLog(NID_WEB_CTRL, "The current value of url is %ls, tag is %ls, value is %ls", url.GetPointer(), tagName.GetPointer(), nodeValue.GetPointer()); pHitElementResult = std::unique_ptr(new (std::nothrow) HitElementResult()); SysTryCatch(NID_WEB_CTRL, pHitElementResult.get(), , E_OUT_OF_MEMORY, "[%s] Memory Allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY)); @@ -4598,7 +4598,7 @@ _WebImpl::SearchHandler(Ewk_Custom_Handlers_Data* pHandlerData, bool checkmime) String uri(ewk_custom_handlers_data_url_get(pHandlerData)); String target(ewk_custom_handlers_data_target_get(pHandlerData)); - SysLog(NID_WEB_CTRL, "BaseUrl : %s, Url : %s, mime : %s", baseUri.GetPointer(), uri.GetPointer(), target.GetPointer()); + SysSecureLog(NID_WEB_CTRL, "BaseUrl : %s, Url : %s, mime : %s", baseUri.GetPointer(), uri.GetPointer(), target.GetPointer()); result r = db.Construct(handlerPath, "r+", null); SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, -1, r, "[%s] Propagating.", GetErrorMessage(r)); @@ -4643,7 +4643,7 @@ _WebImpl::UnregistrationHandler(Ewk_Custom_Handlers_Data* pHandlerData, bool che String uri(ewk_custom_handlers_data_url_get(pHandlerData)); String target(ewk_custom_handlers_data_target_get(pHandlerData)); - SysLog(NID_WEB_CTRL, "BaseUrl : %s, Url : %s, mime : %s", baseUri.GetPointer(), uri.GetPointer(), target.GetPointer()); + SysSecureLog(NID_WEB_CTRL, "BaseUrl : %s, Url : %s, mime : %s", baseUri.GetPointer(), uri.GetPointer(), target.GetPointer()); result r = db.Construct(handlerPath, "r+", null); SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r)); -- 2.7.4