[EFL][WK2] Add request manager client
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Jul 2012 15:49:04 +0000 (15:49 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Jul 2012 15:49:04 +0000 (15:49 +0000)
commit7b73e6dcbd7aff32e5c1ac68fab417590d93c1f8
tree431a10b56d3d259a94d61230294b1fe75061e707
parentb43f8c4ab2c8183b7ec246301517163ff8e8f836
[EFL][WK2] Add request manager client
https://bugs.webkit.org/show_bug.cgi?id=91193

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-07-23
Reviewed by Kenneth Rohde Christiansen.

Add a URL request manager client and attach it
to the Ewk_Context.

The client application can now register a URL scheme
via the Ewk_Context API and provide a callback handler
that will get called whenever a URL request with this
scheme is made.

A new Ewk_Url_Scheme_Request type is introduced to
provide information about the request to the client
and to allow the client to finish it by setting its
contents.

* PlatformEfl.cmake:
* UIProcess/API/efl/EWebKit2.h:
* UIProcess/API/efl/ewk_context.cpp:
(_Ewk_Url_Scheme_Handler):
(_Ewk_Url_Scheme_Handler::_Ewk_Url_Scheme_Handler):
(_Ewk_Context):
(_Ewk_Context::_Ewk_Context):
(ewk_context_request_manager_get):
(ewk_context_url_scheme_request_received):
(createDefaultEwkContext):
(ewk_context_uri_scheme_register):
* UIProcess/API/efl/ewk_context.h:
* UIProcess/API/efl/ewk_context_private.h:
* UIProcess/API/efl/ewk_context_request_manager_client.cpp: Added.
(toEwkContext):
(didReceiveURIRequest):
(ewk_context_request_manager_client_attach):
* UIProcess/API/efl/ewk_context_request_manager_client_private.h: Added.
* UIProcess/API/efl/ewk_url_scheme_request.cpp: Added.
(_Ewk_Url_Scheme_Request):
(_Ewk_Url_Scheme_Request::_Ewk_Url_Scheme_Request):
(_Ewk_Url_Scheme_Request::~_Ewk_Url_Scheme_Request):
(ewk_url_scheme_request_ref):
(ewk_url_scheme_request_unref):
(ewk_url_scheme_request_scheme_get):
(ewk_url_scheme_request_url_get):
(ewk_url_scheme_request_path_get):
(ewk_url_scheme_request_id_get):
(ewk_url_scheme_request_finish):
(ewk_url_scheme_request_new):
* UIProcess/API/efl/ewk_url_scheme_request.h: Added.
* UIProcess/API/efl/ewk_url_scheme_request_private.h: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@123341 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/PlatformEfl.cmake
Source/WebKit2/UIProcess/API/efl/EWebKit2.h
Source/WebKit2/UIProcess/API/efl/ewk_context.cpp
Source/WebKit2/UIProcess/API/efl/ewk_context.h
Source/WebKit2/UIProcess/API/efl/ewk_context_private.h
Source/WebKit2/UIProcess/API/efl/ewk_context_request_manager_client.cpp [new file with mode: 0644]
Source/WebKit2/UIProcess/API/efl/ewk_context_request_manager_client_private.h [new file with mode: 0644]
Source/WebKit2/UIProcess/API/efl/ewk_url_scheme_request.cpp [new file with mode: 0644]
Source/WebKit2/UIProcess/API/efl/ewk_url_scheme_request.h [new file with mode: 0644]
Source/WebKit2/UIProcess/API/efl/ewk_url_scheme_request_private.h [new file with mode: 0644]