1 // Copyright 2013 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ewk_security_origin_h
6 #define ewk_security_origin_h
16 typedef struct _Ewk_Security_Origin Ewk_Security_Origin;
19 * Requests for getting host of security origin.
21 * @param origin security origin
23 * @return host of security origin
25 EXPORT_API Eina_Stringshare* ewk_security_origin_host_get(const Ewk_Security_Origin* origin);
28 * Requests for getting host of security origin.
30 * @param origin security origin
32 * @return host of security origin
34 EXPORT_API Eina_Stringshare* ewk_security_origin_protocol_get(const Ewk_Security_Origin* origin);
37 * Requests for getting host of security origin.
39 * @param origin security origin
41 * @return host of security origin
43 EXPORT_API uint16_t ewk_security_origin_port_get(const Ewk_Security_Origin* origin);
46 * Release all resources allocated by a security origin object.
48 * @param o security origin object
50 EXPORT_API void ewk_security_origin_free(Ewk_Security_Origin *o);
53 * Creates a security origin for a url.
55 * @param url the url for the security origin.
57 * @return the security origin object
59 EXPORT_API Ewk_Security_Origin *ewk_security_origin_new_from_string(const char *url);
65 #endif // ewk_security_origin_h