add patch
[framework/osp/web.git] / src / controls / FWebCtrl_WebStorageManagerImpl.h
1 //\r
2 // Open Service Platform\r
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.\r
4 //\r
5 // Licensed under the Apache License, Version 2.0 (the License);\r
6 // you may not use this file except in compliance with the License.\r
7 // You may obtain a copy of the License at\r
8 //\r
9 //     http://www.apache.org/licenses/LICENSE-2.0\r
10 //\r
11 // Unless required by applicable law or agreed to in writing, software\r
12 // distributed under the License is distributed on an "AS IS" BASIS,\r
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14 // See the License for the specific language governing permissions and\r
15 // limitations under the License.\r
16 //\r
17 \r
18 /**\r
19  * @file                FWebCtrl_WebStorageManagerImpl.h\r
20  * @brief               The file contains the declaration of _WebStorageManagerImpl class.\r
21  *\r
22  * The file contains the declaration of _WebStorageManagerImpl class.\r
23  */\r
24 #ifndef _FWEB_CTRL_INTERNAL_WEB_STORAGE_MANAGER_IMPL_H_\r
25 #define _FWEB_CTRL_INTERNAL_WEB_STORAGE_MANAGER_IMPL_H_\r
26 \r
27 #include <ewk_security_origin.h>\r
28 #include <FBaseString.h>\r
29 #include <FWebCtrlWebStorageManager.h>\r
30 \r
31 namespace Tizen { namespace Base { namespace Collection\r
32 {\r
33 class IList;\r
34 }}}\r
35 \r
36 namespace Tizen { namespace Web { namespace Controls\r
37 {\r
38 \r
39 class _WebStorageManagerImpl\r
40         : public Tizen::Base::Object\r
41 {\r
42 public:\r
43         _WebStorageManagerImpl(void);\r
44 \r
45         virtual ~_WebStorageManagerImpl(void);\r
46 \r
47         Tizen::Base::Collection::IList* GetOriginListN(WebStorageType storageType);\r
48 \r
49         result SetQuotaForOrigin(WebStorageType storageType, const Tizen::Base::String& origin, long quota);\r
50 \r
51         long GetQuotaForOrigin(WebStorageType storageType, const Tizen::Base::String& origin);\r
52 \r
53         long GetUsageForOrigin(WebStorageType storageType, const Tizen::Base::String& origin);\r
54 \r
55         result Remove(WebStorageType storageType, const Tizen::Base::String& origin);\r
56 \r
57         result RemoveAll(WebStorageType storageType);\r
58 \r
59         Ewk_Security_Origin* CompareOrigin(WebStorageType storageType, const Tizen::Base::String& origin);\r
60 \r
61 private:\r
62         _WebStorageManagerImpl(const _WebStorageManagerImpl& rhs);\r
63 \r
64         _WebStorageManagerImpl& operator=(const _WebStorageManagerImpl& rhs);\r
65 \r
66 };\r
67 \r
68 }}} // Tizen::Web::Controls\r
69 #endif // _FWEB_CTRL_INTERNAL_WEB_STORAGE_MANAGER_IMPL_H_