Title: [102966] trunk
Revision
102966
Author
[email protected]
Date
2011-12-15 11:11:35 -0800 (Thu, 15 Dec 2011)

Log Message

[EFL] Add a few more web database functions to ewk_settings.
https://bugs.webkit.org/show_bug.cgi?id=72148

Reviewed by Antonio Gomes.

Source/WebKit/efl:

Add code to change the default quota (there as only a getter so far)
and one to clear the databases.

* ewk/ewk_settings.cpp:
(ewk_settings_web_database_default_quota_set):
(ewk_settings_web_database_clear):
* ewk/ewk_settings.h:

Tools:

* DumpRenderTree/efl/LayoutTestControllerEfl.cpp:
(LayoutTestController::clearAllDatabases):
(LayoutTestController::setDatabaseQuota):

LayoutTests:

LayoutTestController::setDatabaseQuota is implemented now.

* platform/efl/Skipped:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (102965 => 102966)


--- trunk/LayoutTests/ChangeLog	2011-12-15 19:07:58 UTC (rev 102965)
+++ trunk/LayoutTests/ChangeLog	2011-12-15 19:11:35 UTC (rev 102966)
@@ -1,3 +1,14 @@
+2011-12-15  Raphael Kubo da Costa  <[email protected]>
+
+        [EFL] Add a few more web database functions to ewk_settings.
+        https://bugs.webkit.org/show_bug.cgi?id=72148
+
+        Reviewed by Antonio Gomes.
+
+        LayoutTestController::setDatabaseQuota is implemented now.
+
+        * platform/efl/Skipped:
+
 2011-12-15  Brady Eidson  <[email protected]>
 
         https://bugs.webkit.org/show_bug.cgi?id=74607

Modified: trunk/LayoutTests/platform/efl/Skipped (102965 => 102966)


--- trunk/LayoutTests/platform/efl/Skipped	2011-12-15 19:07:58 UTC (rev 102965)
+++ trunk/LayoutTests/platform/efl/Skipped	2011-12-15 19:11:35 UTC (rev 102966)
@@ -667,10 +667,6 @@
 # EFL's LayoutTestController does not implement clearAllDatabases
 storage
 
-# EFL's LayoutTestController does not implement setDatabaseQuota
-storage/open-database-creation-callback.html
-storage/quota-tracking.html
-
 # EFL's LayoutTestController does not implement originsWithLocalStorage
 storage/domstorage/localstorage/storagetracker
 

Modified: trunk/Source/WebKit/efl/ChangeLog (102965 => 102966)


--- trunk/Source/WebKit/efl/ChangeLog	2011-12-15 19:07:58 UTC (rev 102965)
+++ trunk/Source/WebKit/efl/ChangeLog	2011-12-15 19:11:35 UTC (rev 102966)
@@ -1,3 +1,18 @@
+2011-12-15  Raphael Kubo da Costa  <[email protected]>
+
+        [EFL] Add a few more web database functions to ewk_settings.
+        https://bugs.webkit.org/show_bug.cgi?id=72148
+
+        Reviewed by Antonio Gomes.
+
+        Add code to change the default quota (there as only a getter so far)
+        and one to clear the databases.
+
+        * ewk/ewk_settings.cpp:
+        (ewk_settings_web_database_default_quota_set):
+        (ewk_settings_web_database_clear):
+        * ewk/ewk_settings.h:
+
 2011-12-14  Gyuyoung Kim  <[email protected]>
 
         [EFL] Change efl style variable name with WebKit style for internal functions.

Modified: trunk/Source/WebKit/efl/ewk/ewk_settings.cpp (102965 => 102966)


--- trunk/Source/WebKit/efl/ewk/ewk_settings.cpp	2011-12-15 19:07:58 UTC (rev 102965)
+++ trunk/Source/WebKit/efl/ewk/ewk_settings.cpp	2011-12-15 19:11:35 UTC (rev 102966)
@@ -99,6 +99,18 @@
     return s_webDatabaseQuota;
 }
 
+void ewk_settings_web_database_default_quota_set(uint64_t maximumSize)
+{
+    s_webDatabaseQuota = maximumSize;
+}
+
+void ewk_settings_web_database_clear()
+{
+#if ENABLE(SQL_DATABASE)
+    WebCore::DatabaseTracker::tracker().deleteAllDatabases();
+#endif
+}
+
 void ewk_settings_web_database_path_set(const char* path)
 {
 #if ENABLE(SQL_DATABASE)

Modified: trunk/Source/WebKit/efl/ewk/ewk_settings.h (102965 => 102966)


--- trunk/Source/WebKit/efl/ewk/ewk_settings.h	2011-12-15 19:07:58 UTC (rev 102965)
+++ trunk/Source/WebKit/efl/ewk/ewk_settings.h	2011-12-15 19:11:35 UTC (rev 102966)
@@ -44,6 +44,20 @@
 EAPI uint64_t         ewk_settings_web_database_default_quota_get(void);
 
 /**
+ * Sets the default maximum size (in bytes) an HTML5 Web Database database can have.
+ *
+ * By default, this value is 1MB.
+ *
+ * @param maximum_size the new maximum size a database is allowed
+ */
+EAPI void             ewk_settings_web_database_default_quota_set(uint64_t maximum_size);
+
+/**
+ * Removes all HTML5 Web Database databases.
+ */
+EAPI void             ewk_settings_web_database_clear(void);
+
+/**
  * Sets the current path to the directory WebKit will write Web
  * Database databases.
  *

Modified: trunk/Tools/ChangeLog (102965 => 102966)


--- trunk/Tools/ChangeLog	2011-12-15 19:07:58 UTC (rev 102965)
+++ trunk/Tools/ChangeLog	2011-12-15 19:11:35 UTC (rev 102966)
@@ -1,3 +1,14 @@
+2011-12-15  Raphael Kubo da Costa  <[email protected]>
+
+        [EFL] Add a few more web database functions to ewk_settings.
+        https://bugs.webkit.org/show_bug.cgi?id=72148
+
+        Reviewed by Antonio Gomes.
+
+        * DumpRenderTree/efl/LayoutTestControllerEfl.cpp:
+        (LayoutTestController::clearAllDatabases):
+        (LayoutTestController::setDatabaseQuota):
+
 2011-12-15  Martin Kosiba  <[email protected]>
 
         Fix find on web pages with -webkit-user-select: none for Chromium

Modified: trunk/Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp (102965 => 102966)


--- trunk/Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp	2011-12-15 19:07:58 UTC (rev 102965)
+++ trunk/Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp	2011-12-15 19:11:35 UTC (rev 102966)
@@ -543,12 +543,12 @@
 
 void LayoutTestController::clearAllDatabases()
 {
-    notImplemented();
+    ewk_settings_web_database_clear();
 }
 
-void LayoutTestController::setDatabaseQuota(unsigned long long)
+void LayoutTestController::setDatabaseQuota(unsigned long long quota)
 {
-    notImplemented();
+    ewk_settings_web_database_default_quota_set(quota);
 }
 
 JSValueRef LayoutTestController::originsWithLocalStorage(JSContextRef context)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to