Changeset 63972 in webkit
- Timestamp:
- Jul 23, 2010 7:34:26 AM (14 years ago)
- Location:
- trunk/WebKit/efl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/efl/ChangeLog
r63816 r63972 1 2010-07-23 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [EFL] Set proxy address for Soup 6 https://bugs.webkit.org/show_bug.cgi?id=42721 7 8 Sets the given proxy URI for libsoup network backend. This method will 9 support libcurl network backend later. 10 11 * EWebLauncher/main.c: 12 (main): Invoke proxy set method 13 * ewk/ewk_settings.cpp: 14 (ewk_settings_proxy_uri_set): Sets proxy URI. 15 * ewk/ewk_settings.h: 16 1 17 2010-07-16 Leandro Pereira <leandro@profusion.mobi> 2 18 -
trunk/WebKit/efl/EWebLauncher/main.c
r63933 r63972 773 773 char *userAgent = NULL; 774 774 const char *tmp; 775 const char *proxyUri; 775 776 char path[PATH_MAX]; 776 777 … … 835 836 ewk_settings_web_database_path_set(path); 836 837 838 proxyUri = getenv("http_proxy"); 839 if (proxyUri) 840 ewk_settings_proxy_uri_set(proxyUri); 841 837 842 browserCreate(url, theme, userAgent, geometry, engine, isFullscreen); 838 843 ecore_event_handler_add(ECORE_EVENT_SIGNAL_EXIT, main_signal_exit, &windows); -
trunk/WebKit/efl/ewk/ewk_settings.cpp
r60364 r63972 39 39 #include <sys/types.h> 40 40 #include <unistd.h> 41 42 #if USE(SOUP) 43 #include "ResourceHandle.h" 44 #include <libsoup/soup.h> 45 #endif 41 46 42 47 static uint64_t _ewk_default_web_database_quota = 1 * 1024 * 1024; … … 224 229 return ewk_util_image_from_cairo_surface_add(canvas, surface); 225 230 } 231 232 /** 233 * Sets the given proxy URI to network backend. 234 * 235 * @param proxy URI. 236 */ 237 void ewk_settings_proxy_uri_set(const char* proxy) 238 { 239 #if USE(SOUP) 240 SoupURI* uri = soup_uri_new(proxy); 241 EINA_SAFETY_ON_NULL_RETURN(uri); 242 243 SoupSession* session = WebCore::ResourceHandle::defaultSession(); 244 g_object_set(session, SOUP_SESSION_PROXY_URI, uri, NULL); 245 soup_uri_free(uri); 246 #elif USE(CURL) 247 EINA_SAFETY_ON_TRUE_RETURN(1); 248 #endif 249 } -
trunk/WebKit/efl/ewk/ewk_settings.h
r60363 r63972 49 49 EAPI Evas_Object *ewk_settings_icon_database_icon_object_add(const char *url, Evas *canvas); 50 50 51 EAPI void ewk_settings_proxy_uri_set(const char* proxy); 51 52 52 53 #ifdef __cplusplus
Note: See TracChangeset
for help on using the changeset viewer.