Remove URLRequestContextGetterEfl dependency on CookieManager
authorArnaud Renevier <a.renevier@samsung.com>
Fri, 13 Mar 2015 23:07:55 +0000 (16:07 -0700)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
commit0f09248848d2a835ad06526c65b9996b089907b6
tree2d54499da5953772157d1dabec77bcbae95aff5e
parente3747d7796d5114aebc0e02f03ac5984c97e2829
Remove URLRequestContextGetterEfl dependency on CookieManager

Right now, URLRequestContextGetterEfl depends on CookieManager
(scoped_refptr on it), and CookieManager depends on
URLRequestContextGetterEfl (with a WeakPtr).

This isn't a problem yet, because the headers are always called in a
specific way that. But trying to include
url_request_context_getter_efl.h in another file results in a build
error: invalid use of incomplete type â€˜class CookieManager’ Trying
either to include url_request_context_getter_efl.h in cookie_manager.h
or cookie_manager.h in url_request_context_getter_efl.h doesn't work
because of the cycle dependency.

This patch removes URLRequestContextGetterEfl dependency on
CookieManager.

In order to avoid that kind of problem in the future, it also includes
headers needed for objects who have scoped_ptr members in
url_request_context_getter_efl.h

Change-Id: Ib2850258849981fee426238de6b91d86d15bafc8
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
tizen_src/ewk/efl_integration/browser_context_efl.cc
tizen_src/ewk/efl_integration/browser_context_efl.h
tizen_src/ewk/efl_integration/url_request_context_getter_efl.cc
tizen_src/ewk/efl_integration/url_request_context_getter_efl.h