Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Unified Diff: Source/WebCore/dom/Document.cpp

Issue 13861033: Remove Apple's unused implementation of private browsing from WebCore (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/dom/Document.cpp
diff --git a/Source/WebCore/dom/Document.cpp b/Source/WebCore/dom/Document.cpp
index 95020f4f7cd7008ce918095f803bfd25995aabf2..bb8fd6b12c120de08b3370af109c65d6dd5bc47c 100644
--- a/Source/WebCore/dom/Document.cpp
+++ b/Source/WebCore/dom/Document.cpp
@@ -4059,23 +4059,6 @@ void Document::storageBlockingStateDidChange()
securityOrigin()->setStorageBlockingPolicy(settings->storageBlockingPolicy());
}
-void Document::privateBrowsingStateDidChange()
-{
- HashSet<Element*>::iterator end = m_privateBrowsingStateChangedElements.end();
- for (HashSet<Element*>::iterator it = m_privateBrowsingStateChangedElements.begin(); it != end; ++it)
- (*it)->privateBrowsingStateDidChange();
-}
-
-void Document::registerForPrivateBrowsingStateChangedCallbacks(Element* e)
-{
- m_privateBrowsingStateChangedElements.add(e);
-}
-
-void Document::unregisterForPrivateBrowsingStateChangedCallbacks(Element* e)
-{
- m_privateBrowsingStateChangedElements.remove(e);
-}
-
#if ENABLE(VIDEO_TRACK)
void Document::registerForCaptionPreferencesChangedCallbacks(Element* e)
{
@@ -5870,7 +5853,6 @@ void Document::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
info.addMember(m_iconURLs, "iconURLs");
info.addMember(m_documentSuspensionCallbackElements, "documentSuspensionCallbackElements");
info.addMember(m_mediaVolumeCallbackElements, "mediaVolumeCallbackElements");
- info.addMember(m_privateBrowsingStateChangedElements, "privateBrowsingStateChangedElements");
info.addMember(m_elementsByAccessKey, "elementsByAccessKey");
info.addMember(m_eventQueue, "eventQueue");
info.addMember(m_mediaCanStartListeners, "mediaCanStartListeners");

Powered by Google App Engine
This is Rietveld 408576698