Changeset 77243 in webkit
- Timestamp:
- Feb 1, 2011 4:42:44 AM (13 years ago)
- Location:
- trunk/Source/WebKit/efl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/efl/ChangeLog
r77061 r77243 1 2011-02-01 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 3 Reviewed by Antonio Gomes. 4 5 [EFL] Add an API to get proxy address. 6 https://bugs.webkit.org/show_bug.cgi?id=52990 7 8 Gets the proxy URI from network backend. This API returns a proxy URI 9 which is set up by ewk_settings_proxy_uri_set(). But, it only implements 10 this API for libsoup backend. 11 12 * ewk/ewk_settings.cpp: 13 (ewk_settings_proxy_uri_get): 14 * ewk/ewk_settings.h: 15 1 16 2011-01-29 Dan Winship <danw@gnome.org> 2 17 -
trunk/Source/WebKit/efl/ewk/ewk_settings.cpp
r74467 r77243 292 292 293 293 /** 294 * Gets the proxy URI from the network backend. 295 * 296 * @return current proxy URI or @c 0 if it's not set. 297 */ 298 const char* ewk_settings_proxy_uri_get() 299 { 300 #if USE(SOUP) 301 SoupURI* uri; 302 SoupSession* session = WebCore::ResourceHandle::defaultSession(); 303 g_object_get(session, SOUP_SESSION_PROXY_URI, &uri, NULL); 304 305 if (!uri) { 306 ERR("no proxy uri"); 307 return 0; 308 } 309 310 WTF::String proxy = soup_uri_to_string(uri, EINA_FALSE); 311 return eina_stringshare_add(proxy.utf8().data()); 312 #elif USE(CURL) 313 EINA_SAFETY_ON_TRUE_RETURN(1); 314 #endif 315 } 316 317 /** 294 318 * @internal 295 319 * Gets the default user agent string. -
trunk/Source/WebKit/efl/ewk/ewk_settings.h
r69113 r77243 50 50 51 51 EAPI void ewk_settings_proxy_uri_set(const char* proxy); 52 EAPI const char* ewk_settings_proxy_uri_get(); 52 53 53 54 #ifdef __cplusplus
Note: See TracChangeset
for help on using the changeset viewer.