[M67 Dev][EWK] Classify EWK APIs by public, internal, or product
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / public / ewk_security_origin_internal.h
1 /*
2    Copyright (C) 2016 Samsung Electronics
3
4     This library is free software; you can redistribute it and/or
5     modify it under the terms of the GNU Library General Public
6     License as published by the Free Software Foundation; either
7     version 2 of the License, or (at your option) any later version.
8
9     This library is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12     Library General Public License for more details.
13
14     You should have received a copy of the GNU Library General Public License
15     along with this library; see the file COPYING.LIB.  If not, write to
16     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17     Boston, MA 02110-1301, USA.
18 */
19
20 #ifndef ewk_security_origin_internal_h
21 #define ewk_security_origin_internal_h
22
23 #include "ewk_security_origin.h"
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 /**
30  * Requests for getting host of security origin.
31  *
32  * @param origin security origin
33  *
34  * @return host of security origin
35  */
36 EXPORT_API uint16_t ewk_security_origin_port_get(const Ewk_Security_Origin* origin);
37
38 /**
39  * Release all resources allocated by a security origin object.
40  *
41  * @param o security origin object
42  */
43 EXPORT_API void ewk_security_origin_free(Ewk_Security_Origin *o);
44
45 /**
46  * Creates a security origin for a url.
47  *
48  * @param url the url for the security origin.
49  *
50  * @return the security origin object
51  */
52 EXPORT_API Ewk_Security_Origin *ewk_security_origin_new_from_string(const char *url);
53
54 #ifdef __cplusplus
55 }
56 #endif
57 #endif // ewk_security_origin_internal_h