Changeset 122693 in webkit
- Timestamp:
- Jul 15, 2012 8:22:36 PM (12 years ago)
- Location:
- trunk/Source/WebKit/efl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/efl/ChangeLog
r122688 r122693 1 2012-07-15 Kihong Kwon <kihong.kwon@samsung.com> 2 3 [EFL] Add a API for getting security origin string 4 https://bugs.webkit.org/show_bug.cgi?id=90936 5 6 Reviewed by Ryosuke Niwa. 7 8 Support to change from Ewk_Security_Origin to string on the API level. 9 Add ewk_security_origin_string_get for getting security origin string. 10 11 * ewk/ewk_security_origin.cpp: 12 (_Ewk_Security_Origin): 13 (ewk_security_origin_string_get): 14 (ewk_security_origin_free): 15 (ewk_security_origin_new): 16 * ewk/ewk_security_origin.h: 17 1 18 2012-07-15 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 19 -
trunk/Source/WebKit/efl/ewk/ewk_security_origin.cpp
r122564 r122693 38 38 const char* protocol; 39 39 const char* host; 40 const char* originString; 40 41 }; 41 42 … … 50 51 EINA_SAFETY_ON_NULL_RETURN_VAL(origin, 0); 51 52 return origin->host; 53 } 54 55 const char* ewk_security_origin_string_get(const Ewk_Security_Origin* origin) 56 { 57 EINA_SAFETY_ON_NULL_RETURN_VAL(origin, 0); 58 return origin->originString; 52 59 } 53 60 … … 116 123 eina_stringshare_del(origin->host); 117 124 eina_stringshare_del(origin->protocol); 125 eina_stringshare_del(origin->originString); 118 126 119 127 delete origin; … … 141 149 origin->protocol = eina_stringshare_add(coreOrigin->protocol().utf8().data()); 142 150 origin->host = eina_stringshare_add(coreOrigin->host().utf8().data()); 151 origin->originString = eina_stringshare_add(origin->securityOrigin->toString().utf8().data()); 143 152 144 153 return origin; -
trunk/Source/WebKit/efl/ewk/ewk_security_origin.h
r122564 r122693 65 65 */ 66 66 EAPI const char *ewk_security_origin_host_get(const Ewk_Security_Origin *o); 67 68 /** 69 * Convert this Ewk_Security_Origin into a string. 70 * The string representation of a security origin is similar to a URL, except it lacks a path component. 71 * The string representation does not encode the value of the security origin's domain property. 72 * 73 * @param o security origin object 74 * 75 * @return the string representation of security origin or @c 0 if there is not a proper security origin scheme 76 */ 77 EAPI const char *ewk_security_origin_string_get(const Ewk_Security_Origin *o); 67 78 68 79 /** … … 159 170 EAPI Ewk_Security_Origin *ewk_security_origin_new_from_string(const char *url); 160 171 161 162 172 #ifdef __cplusplus 163 173 }
Note: See TracChangeset
for help on using the changeset viewer.