Title: [131329] trunk/Source/WebKit
- Revision
- 131329
- Author
- commit-qu...@webkit.org
- Date
- 2012-10-15 11:52:34 -0700 (Mon, 15 Oct 2012)
Log Message
[EFL] Set the basepath of the File System API.
https://bugs.webkit.org/show_bug.cgi?id=98344
Patch by Dongwoo Joshua Im <dw...@samsung.com> on 2012-10-15
Reviewed by Gyuyoung Kim.
Set the basepath of the File System API using the internal setter function.
Source/WebKit:
* PlatformEfl.cmake: Add new include path.
Source/WebKit/efl:
* ewk/ewk_main.cpp:
(_ewk_init_body): Call the setter function with the default path.
* ewk/ewk_settings.cpp:
(ewk_settings_file_system_path_set): Set the given path as the base path of the file system.
* ewk/ewk_settings_private.h: Add ewk_settings_file_system_path_set.
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (131328 => 131329)
--- trunk/Source/WebKit/ChangeLog 2012-10-15 18:52:32 UTC (rev 131328)
+++ trunk/Source/WebKit/ChangeLog 2012-10-15 18:52:34 UTC (rev 131329)
@@ -1,3 +1,14 @@
+2012-10-15 Dongwoo Joshua Im <dw...@samsung.com>
+
+ [EFL] Set the basepath of the File System API.
+ https://bugs.webkit.org/show_bug.cgi?id=98344
+
+ Reviewed by Gyuyoung Kim.
+
+ Set the basepath of the File System API using the internal setter function.
+
+ * PlatformEfl.cmake: Add new include path.
+
2012-10-15 Ryuan Choi <ryuan.c...@samsung.com>
[EFL] Share resources installed for inspector
Modified: trunk/Source/WebKit/PlatformEfl.cmake (131328 => 131329)
--- trunk/Source/WebKit/PlatformEfl.cmake 2012-10-15 18:52:32 UTC (rev 131328)
+++ trunk/Source/WebKit/PlatformEfl.cmake 2012-10-15 18:52:34 UTC (rev 131329)
@@ -3,6 +3,7 @@
"${WEBKIT_DIR}/efl/ewk"
"${WEBKIT_DIR}/efl/WebCoreSupport"
"${_javascript_CORE_DIR}/ForwardingHeaders"
+ "${WEBCORE_DIR}/Modules/filesystem"
"${WEBCORE_DIR}/platform/efl"
"${WEBCORE_DIR}/platform/graphics/cairo"
"${WEBCORE_DIR}/platform/graphics/efl"
Modified: trunk/Source/WebKit/efl/ChangeLog (131328 => 131329)
--- trunk/Source/WebKit/efl/ChangeLog 2012-10-15 18:52:32 UTC (rev 131328)
+++ trunk/Source/WebKit/efl/ChangeLog 2012-10-15 18:52:34 UTC (rev 131329)
@@ -1,3 +1,18 @@
+2012-10-15 Dongwoo Joshua Im <dw...@samsung.com>
+
+ [EFL] Set the basepath of the File System API.
+ https://bugs.webkit.org/show_bug.cgi?id=98344
+
+ Reviewed by Gyuyoung Kim.
+
+ Set the basepath of the File System API using the internal setter function.
+
+ * ewk/ewk_main.cpp:
+ (_ewk_init_body): Call the setter function with the default path.
+ * ewk/ewk_settings.cpp:
+ (ewk_settings_file_system_path_set): Set the given path as the base path of the file system.
+ * ewk/ewk_settings_private.h: Add ewk_settings_file_system_path_set.
+
2012-10-14 Sam Weinig <s...@webkit.org>
Make UserScript and UserStyleSheet value objects that are copyable
Modified: trunk/Source/WebKit/efl/ewk/ewk_main.cpp (131328 => 131329)
--- trunk/Source/WebKit/efl/ewk/ewk_main.cpp 2012-10-15 18:52:32 UTC (rev 131328)
+++ trunk/Source/WebKit/efl/ewk/ewk_main.cpp 2012-10-15 18:52:34 UTC (rev 131329)
@@ -35,6 +35,7 @@
#include "ewk_network.h"
#include "ewk_private.h"
#include "ewk_settings.h"
+#include "ewk_settings_private.h"
#include "runtime/InitializeThreading.h"
#include <Ecore.h>
#include <Ecore_Evas.h>
@@ -182,10 +183,12 @@
String localStorageDirectory = String::fromUTF8(efreet_data_home_get()) + "/WebKitEfl/LocalStorage";
String webDatabaseDirectory = String::fromUTF8(efreet_cache_home_get()) + "/WebKitEfl/Databases";
String applicationCacheDirectory = String::fromUTF8(efreet_cache_home_get()) + "/WebKitEfl/Applications";
+ String fileSystemDirectory = String::fromUTF8(efreet_data_home_get()) + "/WebKitEfl/FileSystem";
ewk_settings_local_storage_path_set(localStorageDirectory.utf8().data());
ewk_settings_web_database_path_set(webDatabaseDirectory.utf8().data());
ewk_settings_application_cache_path_set(applicationCacheDirectory.utf8().data());
+ ewk_settings_file_system_path_set(fileSystemDirectory.utf8().data());
ewk_network_tls_certificate_check_set(false);
Modified: trunk/Source/WebKit/efl/ewk/ewk_settings.cpp (131328 => 131329)
--- trunk/Source/WebKit/efl/ewk/ewk_settings.cpp 2012-10-15 18:52:32 UTC (rev 131328)
+++ trunk/Source/WebKit/efl/ewk/ewk_settings.cpp 2012-10-15 18:52:34 UTC (rev 131329)
@@ -31,6 +31,7 @@
#include "Image.h"
#include "IntSize.h"
#include "KURL.h"
+#include "LocalFileSystem.h"
#include "MemoryCache.h"
#include "PageCache.h"
#include "RuntimeEnabledFeatures.h"
@@ -323,6 +324,23 @@
return eina_stringshare_add(staticUa.utf8().data());
}
+/**
+ * @internal
+ *
+ * Sets the given path to the directory where WebKit will write for
+ * the HTML5 file system API.
+ *
+ * @param path the new file system directory path
+ */
+void ewk_settings_file_system_path_set(const char* path)
+{
+#if ENABLE(FILE_SYSTEM)
+ WebCore::LocalFileSystem::initializeLocalFileSystem(String::fromUTF8(path));
+#else
+ UNUSED_PARAM(path);
+#endif
+}
+
void ewk_settings_application_cache_path_set(const char* path)
{
WebCore::cacheStorage().setCacheDirectory(WTF::String::fromUTF8(path));
Modified: trunk/Source/WebKit/efl/ewk/ewk_settings_private.h (131328 => 131329)
--- trunk/Source/WebKit/efl/ewk/ewk_settings_private.h 2012-10-15 18:52:32 UTC (rev 131328)
+++ trunk/Source/WebKit/efl/ewk/ewk_settings_private.h 2012-10-15 18:52:34 UTC (rev 131329)
@@ -23,4 +23,6 @@
const char* ewk_settings_default_user_agent_get();
+void ewk_settings_file_system_path_set(const char *path);
+
#endif // ewk_settings_private_h
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes