apply certificate DB
[framework/osp/web.git] / src / controls / FWebCtrl_EflWebkit.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file                FWebCtrl_EflWebkit.h
20  * @brief               The file contains the declaration of _EflWebkit class.
21  *
22  * The file contains the declaration of _EflWebkit class.
23  */
24 #ifndef _FWEB_CTRL_INTERNAL_EFL_WEBKIT_H_
25 #define _FWEB_CTRL_INTERNAL_EFL_WEBKIT_H_
26
27 #include <Evas.h>
28 #include <FBaseString.h>
29
30 namespace Tizen { namespace Graphics
31 {
32 class Rectangle;
33 }} // Tizen::Graphics
34
35 namespace Tizen { namespace Ui
36 {
37 class _Control;
38 }} // Tizen::Ui
39
40 namespace Tizen { namespace Ui { namespace Animations
41 {
42 class VisualElement;
43 class VisualElementSurface;
44 }}} // Tizen::Ui::Animations
45
46
47 namespace Tizen { namespace Web { namespace Controls
48 {
49
50 _OSP_EXPORT_ extern const wchar_t CUSTOM_DB_DIRECTORY_PATH[];
51 _OSP_EXPORT_ extern const wchar_t USER_CONFIRM_DB_NAME[];
52 _OSP_EXPORT_ extern const wchar_t GEOLOCATION_TABLE_NAME[];
53 _OSP_EXPORT_ extern const wchar_t CUSTOM_PROTOCOL_TABLE_NAME[];
54 _OSP_EXPORT_ extern const wchar_t CUSTOM_CONTENT_TABLE_NAME[];
55 _OSP_EXPORT_ extern const wchar_t CERTIFICATE_TABLE_NAME[];
56
57 class _EflWebkit
58         : public Tizen::Base::Object
59 {
60 public:
61         _EflWebkit(void);
62
63         virtual ~_EflWebkit(void);
64
65         result Construct(const Tizen::Graphics::Rectangle& rect, Tizen::Ui::Animations::VisualElement& containerVisualElement, Tizen::Ui::_Control* pControl);
66
67         Evas_Object* GetWebEvasObject(void) const;
68
69 //      result GetPixelBufferFromEvasObject(const Evas_Object* source, Tizen::Graphics::BufferInfo& bufferInfo);
70
71 private:
72         _EflWebkit(const _EflWebkit&);
73
74         result SetWebConfiguration(void) const;
75
76         result SetProxyAddress(void) const;
77
78         result CreateResourceDirectory(void) const;
79
80         result InitializeCustomDb() const;
81
82         _EflWebkit& operator =(const _EflWebkit&);
83
84 private:
85         Evas_Object* __pWebFrame;
86         Tizen::Ui::Animations::VisualElement* __pContainerVisualElement;
87         Tizen::Ui::Animations::VisualElementSurface* __pSurface;
88 }; // _EflWebkit
89
90 }}} // Tizen::Web::Controls
91 #endif // _FWEB_CTRL_INTERNAL_EFL_WEBKIT_H_