Commit b2da40e5 authored by beidson@apple.com's avatar beidson@apple.com

WebCore:

2008-04-19  Brady Eidson  <beidson@apple.com>

        Reviewed by Tim Hatcher

        Add LocalStorageDatabasePath to the settings for the location of persistent local storage.

        * WebCore.base.exp:

        * page/Settings.cpp:
        (WebCore::Settings::setLocalStorageDatabasePath):
        * page/Settings.h:
        (WebCore::Settings::localStorageDatabasePath):

WebKit/mac:

2008-04-19  Brady Eidson  <beidson@apple.com>

        Reviewed by Tim Hatcher

        Add a WebPreference for the path of the local storage persistent store.

        * WebView/WebPreferenceKeysPrivate.h:

        * WebView/WebPreferences.m:
        (-[WebPreferences _localStorageDatabasePath]):
        (-[WebPreferences _setLocalStorageDatabasePath:]):
        * WebView/WebPreferencesPrivate.h:

        * WebView/WebView.mm:
        (-[WebView _preferencesChangedNotification:]):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5bd746a9
2008-04-19 Brady Eidson <beidson@apple.com>
Reviewed by Tim Hatcher
Add LocalStorageDatabasePath to the settings for the location of persistent local storage.
* WebCore.base.exp:
* page/Settings.cpp:
(WebCore::Settings::setLocalStorageDatabasePath):
* page/Settings.h:
(WebCore::Settings::localStorageDatabasePath):
2008-04-18 Jan Michael Alonzo <jmalonzo@unpluggable.com>
Reviewed by Alp Toker.
......@@ -553,6 +553,7 @@ __ZN7WebCore8Settings26setDefaultTextEncodingNameERKNS_6StringE
__ZN7WebCore8Settings26setNeedsSiteSpecificQuirksEb
__ZN7WebCore8Settings27setFTPDirectoryTemplatePathERKNS_6StringE
__ZN7WebCore8Settings27setLoadsImagesAutomaticallyEb
__ZN7WebCore8Settings27setLocalStorageDatabasePathERKNS_6StringE
__ZN7WebCore8Settings28setForceFTPDirectoryListingsEb
__ZN7WebCore8Settings29setAuthorAndUserStylesEnabledEb
__ZN7WebCore8Settings29setWebArchiveDebugModeEnabledEb
......
......@@ -329,4 +329,9 @@ void Settings::setWebArchiveDebugModeEnabled(bool enabled)
m_webArchiveDebugModeEnabled = enabled;
}
void Settings::setLocalStorageDatabasePath(const String& path)
{
m_localStorageDatabasePath = path;
}
} // namespace WebCore
......@@ -152,11 +152,15 @@ namespace WebCore {
void setWebArchiveDebugModeEnabled(bool);
bool webArchiveDebugModeEnabled() const { return m_webArchiveDebugModeEnabled; }
void setLocalStorageDatabasePath(const String&);
const String& localStorageDatabasePath() const { return m_localStorageDatabasePath; }
private:
Page* m_page;
String m_defaultTextEncodingName;
String m_ftpDirectoryTemplatePath;
String m_localStorageDatabasePath;
KURL m_userStyleSheetLocation;
AtomicString m_standardFontFamily;
AtomicString m_fixedFontFamily;
......
2008-04-19 Brady Eidson <beidson@apple.com>
Reviewed by Tim Hatcher
Add a WebPreference for the path of the local storage persistent store.
* WebView/WebPreferenceKeysPrivate.h:
* WebView/WebPreferences.m:
(-[WebPreferences _localStorageDatabasePath]):
(-[WebPreferences _setLocalStorageDatabasePath:]):
* WebView/WebPreferencesPrivate.h:
* WebView/WebView.mm:
(-[WebView _preferencesChangedNotification:]):
2008-04-18 Brady Eidson <beidson@apple.com>
Reviewed by Sam Weinig
......
......@@ -65,6 +65,7 @@
#define WebKitDeveloperExtrasEnabledPreferenceKey @"WebKitDeveloperExtrasEnabledPreferenceKey"
#define WebKitAuthorAndUserStylesEnabledPreferenceKey @"WebKitAuthorAndUserStylesEnabledPreferenceKey"
#define WebKitWebArchiveDebugModeEnabledPreferenceKey @"WebKitWebArchiveDebugModeEnabledPreferenceKey"
#define WebKitLocalStorageDatabasePathPreferenceKey @"WebKitLocalStorageDatabasePathPreferenceKey"
// These are private both because callers should be using the cover methods and because the
// cover methods themselves are private.
......
......@@ -963,6 +963,16 @@ - (void)_setFTPDirectoryTemplatePath:(NSString *)path
[self _setStringValue:path forKey:WebKitFTPDirectoryTemplatePath];
}
- (NSString *)_localStorageDatabasePath
{
return [self _stringValueForKey:WebKitLocalStorageDatabasePathPreferenceKey];
}
- (void)_setLocalStorageDatabasePath:(NSString *)path
{
[self _setStringValue:path forKey:WebKitLocalStorageDatabasePathPreferenceKey];
}
- (NSString *)_ftpDirectoryTemplatePath
{
return [self _stringValueForKey:WebKitFTPDirectoryTemplatePath];
......
......@@ -92,6 +92,8 @@ extern NSString *WebPreferencesRemovedNotification;
- (void)_setFTPDirectoryTemplatePath:(NSString *)path;
- (void)_setForceFTPDirectoryListings:(BOOL)force;
- (BOOL)_forceFTPDirectoryListings;
- (NSString *)_localStorageDatabasePath;
- (void)_setLocalStorageDatabasePath:(NSString *)path;
// Other private methods
- (void)_postPreferencesChangesNotification;
......
......@@ -954,6 +954,7 @@ static bool debugWidget = true;
settings->setFixedFontFamily([preferences fixedFontFamily]);
settings->setForceFTPDirectoryListings([preferences _forceFTPDirectoryListings]);
settings->setFTPDirectoryTemplatePath([preferences _ftpDirectoryTemplatePath]);
settings->setLocalStorageDatabasePath([preferences _localStorageDatabasePath]);
settings->setJavaEnabled([preferences isJavaEnabled]);
settings->setJavaScriptEnabled([preferences isJavaScriptEnabled]);
settings->setJavaScriptCanOpenWindowsAutomatically([preferences javaScriptCanOpenWindowsAutomatically]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment