Commit 3f7ded3b authored by abarth@webkit.org's avatar abarth@webkit.org

2011-05-12 Adam Barth <abarth@webkit.org>

        Reviewed by Eric Seidel.

        [Chromium] Add a WebSetting to control DNS prefetch
        https://bugs.webkit.org/show_bug.cgi?id=60736

        DNS prefetch got disabled in Chrome accidentially in
        http://trac.webkit.org/changeset/74041.  This patch adds a WebSettings
        API so we can enable it again.

        * public/WebSettings.h:
        * src/WebSettingsImpl.cpp:
        (WebKit::WebSettingsImpl::setDNSPrefetchingEnabled):
        * src/WebSettingsImpl.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86410 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 13914dd3
2011-05-12 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
[Chromium] Add a WebSetting to control DNS prefetch
https://bugs.webkit.org/show_bug.cgi?id=60736
DNS prefetch got disabled in Chrome accidentially in
http://trac.webkit.org/changeset/74041. This patch adds a WebSettings
API so we can enable it again.
* public/WebSettings.h:
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::setDNSPrefetchingEnabled):
* src/WebSettingsImpl.h:
2011-05-11 John Abd-El-Malek <jam@chromium.org> 2011-05-11 John Abd-El-Malek <jam@chromium.org>
Reviewed by James Robinson. Reviewed by James Robinson.
......
...@@ -82,6 +82,7 @@ public: ...@@ -82,6 +82,7 @@ public:
virtual void setDownloadableBinaryFontsEnabled(bool) = 0; virtual void setDownloadableBinaryFontsEnabled(bool) = 0;
virtual void setJavaScriptCanAccessClipboard(bool) = 0; virtual void setJavaScriptCanAccessClipboard(bool) = 0;
virtual void setXSSAuditorEnabled(bool) = 0; virtual void setXSSAuditorEnabled(bool) = 0;
virtual void setDNSPrefetchingEnabled(bool) = 0;
virtual void setLocalStorageEnabled(bool) = 0; virtual void setLocalStorageEnabled(bool) = 0;
virtual void setEditableLinkBehaviorNeverLive() = 0; virtual void setEditableLinkBehaviorNeverLive() = 0;
virtual void setFrameFlatteningEnabled(bool) = 0; virtual void setFrameFlatteningEnabled(bool) = 0;
......
...@@ -214,6 +214,11 @@ void WebSettingsImpl::setXSSAuditorEnabled(bool enabled) ...@@ -214,6 +214,11 @@ void WebSettingsImpl::setXSSAuditorEnabled(bool enabled)
m_settings->setXSSAuditorEnabled(enabled); m_settings->setXSSAuditorEnabled(enabled);
} }
void WebSettingsImpl::setDNSPrefetchingEnabled(bool enabled)
{
m_settings->setDNSPrefetchingEnabled(enabled);
}
void WebSettingsImpl::setLocalStorageEnabled(bool enabled) void WebSettingsImpl::setLocalStorageEnabled(bool enabled)
{ {
m_settings->setLocalStorageEnabled(enabled); m_settings->setLocalStorageEnabled(enabled);
......
...@@ -75,6 +75,7 @@ public: ...@@ -75,6 +75,7 @@ public:
virtual void setDownloadableBinaryFontsEnabled(bool); virtual void setDownloadableBinaryFontsEnabled(bool);
virtual void setJavaScriptCanAccessClipboard(bool); virtual void setJavaScriptCanAccessClipboard(bool);
virtual void setXSSAuditorEnabled(bool); virtual void setXSSAuditorEnabled(bool);
virtual void setDNSPrefetchingEnabled(bool);
virtual void setLocalStorageEnabled(bool); virtual void setLocalStorageEnabled(bool);
virtual void setEditableLinkBehaviorNeverLive(); virtual void setEditableLinkBehaviorNeverLive();
virtual void setFrameFlatteningEnabled(bool); virtual void setFrameFlatteningEnabled(bool);
......
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