[M67 Dev][API] Switch ewk_export.h with tizen.h
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / public / ewk_certificate.h
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.
4
5 #ifndef ewk_certificate_h
6 #define ewk_certificate_h
7
8 #include <Eina.h>
9 #include <tizen.h>
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 typedef struct _Ewk_Certificate_Policy_Decision Ewk_Certificate_Policy_Decision;
16
17 /**
18  * Set the variable to allow the site access about certificate error.
19  * After this function call Ewk_Certificate_Policy_Decision object becomes
20  * invalid.
21  *
22  * @param certificate_policy_decision certificate information data
23  *
24  * @param allowed decided permission value from user
25  */
26 EXPORT_API void ewk_certificate_policy_decision_allowed_set(Ewk_Certificate_Policy_Decision* certificate_policy_decision, Eina_Bool allowed);
27
28 /**
29  * Suspend the operation for certificate error policy decision.
30  *
31  * This suspends the operation for certificate error policy decision when the signal for policy is emitted.
32  * This is very usefull to decide the policy from the additional UI operation like the popup.
33  *
34  * @param certificate_policy_decision certificate information data
35  *
36  * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
37  */
38 EXPORT_API Eina_Bool ewk_certificate_policy_decision_suspend(Ewk_Certificate_Policy_Decision* certificate_policy_decision);
39
40 /**
41  * Get the variable url to check the site's url data about certificate error.
42  *
43  * @param certificate_policy_decision certificate information data
44  *
45  * @return @c url string on success or empty string on failure. The string
46  * is only valid until related Ewk_Certificate_Policy_Decision object is valid.
47  */
48 EXPORT_API Eina_Stringshare* ewk_certificate_policy_decision_url_get(Ewk_Certificate_Policy_Decision* certificate_policy_decision);
49
50 /**
51  * Get the variable certificate pem data to check the information about certificate error.
52  *
53  * @param certificate_policy_decision certificate information data
54  *
55  * @return @c certificate pem string on success or empty string on failure.
56  * The string is only valid until related Ewk_Certificate_Policy_Decision
57  * object is valid.
58  */
59 EXPORT_API Eina_Stringshare* ewk_certificate_policy_decision_certificate_pem_get(Ewk_Certificate_Policy_Decision* certificate_policy_decision);
60
61 /**
62  * Get the variable errro number to check the error cause about certificate error.
63  *
64  * @param certificate_policy_decision certificate information data
65  *
66  * @return @c error number
67  */
68 EXPORT_API int ewk_certificate_policy_decision_error_get(Ewk_Certificate_Policy_Decision* certificate_policy_decision);
69
70 #ifdef __cplusplus
71 }
72 #endif
73 #endif