Changeset 100463 in webkit
- Timestamp:
- Nov 16, 2011 9:33:29 AM (12 years ago)
- Location:
- trunk/Source/WebKit/efl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/efl/ChangeLog
r100452 r100463 1 2011-11-16 Raphael Kubo da Costa <kubo@profusion.mobi> 2 3 [EFL] Clean up the web database-related functions in ewk_settings. 4 https://bugs.webkit.org/show_bug.cgi?id=72139 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 Mostly remove some unnecessary ENABLE(SQL_DATABASE) checks and use a 9 more standard naming scheme for the related static variables. 10 11 * ewk/ewk_settings.cpp: 12 (ewk_settings_web_database_default_quota_get): 13 (ewk_settings_web_database_path_set): 14 (ewk_settings_web_database_path_get): 15 * ewk/ewk_settings.h: Document the default web database path on disk. 16 1 17 2011-11-16 Raphael Kubo da Costa <kubo@profusion.mobi> 2 18 -
trunk/Source/WebKit/efl/ewk/ewk_settings.cpp
r100452 r100463 22 22 #include "ewk_settings.h" 23 23 24 #include "DatabaseTracker.h" 24 25 #include "EWebKit.h" 25 #if ENABLE(SQL_DATABASE)26 #include "DatabaseTracker.h"27 #endif28 26 #include "FrameView.h" 29 27 #include "IconDatabase.h" … … 50 48 51 49 static const char* _ewk_icon_database_path = 0; 52 #if ENABLE(SQL_DATABASE) 53 static const char* _ewk_default_web_database_path = 0; 54 static uint64_t _ewk_default_web_database_quota = 1 * 1024 * 1024; 55 #endif 50 51 static const char* s_webDatabasePath = 0; 52 static uint64_t s_webDatabaseQuota = 1 * 1024 * 1024; // 1MB. 56 53 57 54 static WTF::String _ewk_settings_webkit_platform_get() … … 81 78 uint64_t ewk_settings_web_database_default_quota_get() 82 79 { 83 #if ENABLE(SQL_DATABASE) 84 return _ewk_default_web_database_quota; 85 #else 86 return 0; 87 #endif 80 return s_webDatabaseQuota; 88 81 } 89 82 … … 92 85 #if ENABLE(SQL_DATABASE) 93 86 WebCore::DatabaseTracker::tracker().setDatabaseDirectoryPath(WTF::String::fromUTF8(path)); 94 eina_stringshare_replace(& _ewk_default_web_database_path, path);87 eina_stringshare_replace(&s_webDatabasePath, path); 95 88 #endif 96 89 } … … 98 91 const char* ewk_settings_web_database_path_get(void) 99 92 { 100 #if ENABLE(SQL_DATABASE) 101 return _ewk_default_web_database_path; 102 #else 103 return 0; 104 #endif 93 return s_webDatabasePath; 105 94 } 106 95 -
trunk/Source/WebKit/efl/ewk/ewk_settings.h
r100452 r100463 48 48 * Database databases. 49 49 * 50 * By default, the value is @c ~/.webkit 51 * 50 52 * @param path the new database directory path 51 53 */ … … 54 56 /** 55 57 * Returns directory path where web database is stored. 58 * 59 * By default, the value is @c ~/.webkit 56 60 * 57 61 * This is guaranteed to be eina_stringshare, so whenever possible
Note: See TracChangeset
for help on using the changeset viewer.