Support Web storage permission privilege
authorJihoon Chung <jihoon.chung@samsung.com>
Sat, 4 May 2013 07:41:38 +0000 (16:41 +0900)
committerGerrit Code Review <gerrit2@kim11>
Tue, 7 May 2013 02:50:06 +0000 (11:50 +0900)
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Support Web storage permission privilege
[SCMRequest] N/A

Change-Id: Ic98a5de35c9b1faa9cd5cc674065c6706a0ca3d3

modules/widget_dao/dao/widget_dao_types.cpp [changed mode: 0755->0644]
modules/widget_dao/include/dpl/wrt-dao-ro/global_config.h
modules/widget_dao/include/dpl/wrt-dao-ro/vconf_config.h
modules/widget_dao/include/dpl/wrt-dao-ro/widget_dao_types.h [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 50976e2..f260497
@@ -31,6 +31,7 @@ const std::map<std::string, Feature> g_W3CPrivilegeTextMap = {
     {"http://tizen.org/privilege/location",     FEATURE_GEOLOCATION},
     {"http://tizen.org/privilege/notification", FEATURE_WEB_NOTIFICATION},
     {"http://tizen.org/privilege/mediacapture", FEATURE_USER_MEDIA},
-    {"http://tizen.org/privilege/fullscreen", FEATURE_FULLSCREEN_MODE}
+    {"http://tizen.org/privilege/fullscreen", FEATURE_FULLSCREEN_MODE},
+    {"http://tizen.org/privilege/unlimitedstorage", FEATURE_WEB_DATABASE},
 };
 } // namespace SecurityOriginDB
index a2fa66a..3b9ca41 100644 (file)
@@ -310,11 +310,6 @@ inline const char* GetVconfKeyWebDatabaseUsagePath()
     return "/web_database_usage";
 }
 
-inline const char* GetVconfKeyFilesystemUsagePath()
-{
-    return "/filesystem_usage";
-}
-
 inline const char* GetVconfKeyMemorySavingModePath()
 {
     return "/memory_saving_mode";
index 9245141..c84e866 100644 (file)
@@ -73,6 +73,15 @@ inline std::string GetVconfKeyMemorySavingMode(DPL::String tzPkgId)
                .Concat(GlobalConfig::GetVconfKeyMemorySavingModePath())
                .GetFullPath();
 }
+
+inline std::string GetVconfKeyWebDatabaseUsage(DPL::String tzPkgId)
+{
+    return PathBuilder()
+               .Append(GlobalConfig::GetVconfKeyPrefixPath())
+               .Append(DPL::ToUTF8String(tzPkgId))
+               .Concat(GlobalConfig::GetVconfKeyWebDatabaseUsagePath())
+               .GetFullPath();
+}
 } // namespace VconfConfig
 } // namespace WrtDB
 
old mode 100755 (executable)
new mode 100644 (file)
index d170f3b..4cd3578
@@ -38,7 +38,8 @@ enum Feature
     FEATURE_WEB_NOTIFICATION,
     FEATURE_USER_MEDIA,
     FEATURE_FULLSCREEN_MODE,
-    FEATURE_END = FEATURE_FULLSCREEN_MODE
+    FEATURE_WEB_DATABASE,
+    FEATURE_END = FEATURE_WEB_DATABASE
 };
 extern const std::map<std::string, Feature> g_W3CPrivilegeTextMap;
 } // namespace WrtDB