Changed policy decision mechanism to use content resource throttle API
authorTomasz Czekala <t.czekala@partner.samsung.com>
Wed, 10 Dec 2014 16:12:50 +0000 (17:12 +0100)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
commit7d1a95f9fd408de8678a5b04a540ab9f7b0ad0e9
treec8211206476ff5148a1616ed3e9e3235feae0904
parent166ba5e3915758a9e07dce0b7304c6b4bd901da2
Changed policy decision mechanism to use content resource throttle API

Handling decision in NetworkDelegateEfl::OnHeadersReceived caused
a lot of troubles due to insufficient amount of information needed
to distinguish between page resources and downloadable files.
This patch replaces the original mechanism used with resource throttles.
It allows us to make better decisions regarding how to handle the
content we're dealing with.
Removed unnecessary code duplicating existing engine functionalities.

This patch contains following patches:
http://suprem.sec.samsung.net/gerrit/#/c/6663/ by Kamil Klimek
http://165.213.202.130:8080/#/c/68742/ by Michal Stefanczyk
http://165.213.202.130:8080/#/c/69608/ by Marcin Łapiński
http://165.213.202.130:8080/#/c/70054/ by Kamil Klimek
http://165.213.202.130:8080/#/c/71925/ by Maciej Skrzypkowski

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=9488
Reviewed by: Kamil Klimek, Piotr Tworek, SeungSeop Park

Change-Id: I76a2799586c4902327add2e6827a05ae2b4ddd3c
Signed-off-by: Tomasz Czekala <t.czekala@partner.samsung.com>
18 files changed:
tizen_src/impl/API/ewk_policy_decision_private.cc
tizen_src/impl/API/ewk_policy_decision_private.h
tizen_src/impl/browser/policy_response_delegate_efl.cc
tizen_src/impl/browser/policy_response_delegate_efl.h
tizen_src/impl/browser/resource_dispatcher_host_delegate_efl.cc
tizen_src/impl/browser/resource_dispatcher_host_delegate_efl.h
tizen_src/impl/browser/resource_throttle_efl.cc [new file with mode: 0644]
tizen_src/impl/browser/resource_throttle_efl.h [new file with mode: 0644]
tizen_src/impl/browser_context_efl.cc
tizen_src/impl/browser_context_efl.h
tizen_src/impl/chromium-efl.gyp
tizen_src/impl/eweb_context.cc
tizen_src/impl/eweb_context.h
tizen_src/impl/network_delegate_efl.cc
tizen_src/impl/network_delegate_efl.h
tizen_src/impl/tizen_webview/public/tw_policy_decision.cc
tizen_src/impl/tizen_webview/public/tw_policy_decision.h
tizen_src/impl/tizen_webview/public/tw_web_context.cc