X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fxwalk%2Fruntime%2Fbrowser%2Fandroid%2Fnet%2Fandroid_protocol_handler.cc;h=580f980da639a3f54b27b853b3aa9e03b85beac5;hb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;hp=8b599ce0d9a3f9d07f9b3131371987f0a64cb538;hpb=6a8ccb215ae8932b1b59ff751f115e9ccfb4066b;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/xwalk/runtime/browser/android/net/android_protocol_handler.cc b/src/xwalk/runtime/browser/android/net/android_protocol_handler.cc index 8b599ce..580f980 100644 --- a/src/xwalk/runtime/browser/android/net/android_protocol_handler.cc +++ b/src/xwalk/runtime/browser/android/net/android_protocol_handler.cc @@ -24,8 +24,7 @@ #include "xwalk/runtime/browser/android/net/input_stream_impl.h" #include "xwalk/runtime/browser/android/net/url_constants.h" #include "xwalk/runtime/browser/runtime_context.h" -#include "xwalk/runtime/browser/xwalk_browser_main_parts.h" -#include "xwalk/runtime/browser/xwalk_content_browser_client.h" +#include "xwalk/runtime/browser/xwalk_runner.h" using base::android::AttachCurrentThread; using base::android::ClearException; @@ -249,20 +248,14 @@ net::URLRequestJob* AndroidProtocolHandlerBase::MaybeCreateJob( scoped_ptr reader_delegate( new AndroidStreamReaderURLRequestJobDelegateImpl()); - base::FilePath relative_path = base::FilePath( - net::UnescapeURLComponent(request->url().path(), - net::UnescapeRule::SPACES | net::UnescapeRule::URL_SPECIAL_CHARS)); - - xwalk::XWalkBrowserMainParts* main_parts = - xwalk::XWalkContentBrowserClient::Get()->main_parts(); - xwalk::RuntimeContext* runtime_context = main_parts->runtime_context(); + xwalk::RuntimeContext* runtime_context = + xwalk::XWalkRunner::GetInstance()->runtime_context(); std::string content_security_policy = runtime_context->GetCSPString(); return new AndroidStreamReaderURLRequestJob( request, network_delegate, reader_delegate.PassAs(), - relative_path, content_security_policy); }