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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 4041 matching lines...) Expand 10 before | Expand all | Expand 10 after
4052 { 4052 {
4053 m_mediaVolumeCallbackElements.remove(e); 4053 m_mediaVolumeCallbackElements.remove(e);
4054 } 4054 }
4055 4055
4056 void Document::storageBlockingStateDidChange() 4056 void Document::storageBlockingStateDidChange()
4057 { 4057 {
4058 if (Settings* settings = this->settings()) 4058 if (Settings* settings = this->settings())
4059 securityOrigin()->setStorageBlockingPolicy(settings->storageBlockingPoli cy()); 4059 securityOrigin()->setStorageBlockingPolicy(settings->storageBlockingPoli cy());
4060 } 4060 }
4061 4061
4062 void Document::privateBrowsingStateDidChange()
4063 {
4064 HashSet<Element*>::iterator end = m_privateBrowsingStateChangedElements.end( );
4065 for (HashSet<Element*>::iterator it = m_privateBrowsingStateChangedElements. begin(); it != end; ++it)
4066 (*it)->privateBrowsingStateDidChange();
4067 }
4068
4069 void Document::registerForPrivateBrowsingStateChangedCallbacks(Element* e)
4070 {
4071 m_privateBrowsingStateChangedElements.add(e);
4072 }
4073
4074 void Document::unregisterForPrivateBrowsingStateChangedCallbacks(Element* e)
4075 {
4076 m_privateBrowsingStateChangedElements.remove(e);
4077 }
4078
4079 #if ENABLE(VIDEO_TRACK) 4062 #if ENABLE(VIDEO_TRACK)
4080 void Document::registerForCaptionPreferencesChangedCallbacks(Element* e) 4063 void Document::registerForCaptionPreferencesChangedCallbacks(Element* e)
4081 { 4064 {
4082 if (page()) 4065 if (page())
4083 page()->group().captionPreferences()->setInterestedInCaptionPreferenceCh anges(); 4066 page()->group().captionPreferences()->setInterestedInCaptionPreferenceCh anges();
4084 4067
4085 m_captionPreferencesChangedElements.add(e); 4068 m_captionPreferencesChangedElements.add(e);
4086 } 4069 }
4087 4070
4088 void Document::unregisterForCaptionPreferencesChangedCallbacks(Element* e) 4071 void Document::unregisterForCaptionPreferencesChangedCallbacks(Element* e)
(...skipping 1774 matching lines...) Expand 10 before | Expand all | Expand 10 after
5863 info.addMember(m_title.string(), "title.string()"); 5846 info.addMember(m_title.string(), "title.string()");
5864 info.addMember(m_rawTitle.string(), "rawTitle.string()"); 5847 info.addMember(m_rawTitle.string(), "rawTitle.string()");
5865 info.addMember(m_xmlEncoding, "xmlEncoding"); 5848 info.addMember(m_xmlEncoding, "xmlEncoding");
5866 info.addMember(m_xmlVersion, "xmlVersion"); 5849 info.addMember(m_xmlVersion, "xmlVersion");
5867 info.addMember(m_contentLanguage, "contentLanguage"); 5850 info.addMember(m_contentLanguage, "contentLanguage");
5868 info.addMember(m_annotatedRegions, "annotatedRegions"); 5851 info.addMember(m_annotatedRegions, "annotatedRegions");
5869 info.addMember(m_cssCanvasElements, "cssCanvasElements"); 5852 info.addMember(m_cssCanvasElements, "cssCanvasElements");
5870 info.addMember(m_iconURLs, "iconURLs"); 5853 info.addMember(m_iconURLs, "iconURLs");
5871 info.addMember(m_documentSuspensionCallbackElements, "documentSuspensionCall backElements"); 5854 info.addMember(m_documentSuspensionCallbackElements, "documentSuspensionCall backElements");
5872 info.addMember(m_mediaVolumeCallbackElements, "mediaVolumeCallbackElements") ; 5855 info.addMember(m_mediaVolumeCallbackElements, "mediaVolumeCallbackElements") ;
5873 info.addMember(m_privateBrowsingStateChangedElements, "privateBrowsingStateC hangedElements");
5874 info.addMember(m_elementsByAccessKey, "elementsByAccessKey"); 5856 info.addMember(m_elementsByAccessKey, "elementsByAccessKey");
5875 info.addMember(m_eventQueue, "eventQueue"); 5857 info.addMember(m_eventQueue, "eventQueue");
5876 info.addMember(m_mediaCanStartListeners, "mediaCanStartListeners"); 5858 info.addMember(m_mediaCanStartListeners, "mediaCanStartListeners");
5877 info.addMember(m_pendingTasks, "pendingTasks"); 5859 info.addMember(m_pendingTasks, "pendingTasks");
5878 #if ENABLE(LINK_PRERENDER) 5860 #if ENABLE(LINK_PRERENDER)
5879 info.addMember(m_prerenderer, "prerenderer"); 5861 info.addMember(m_prerenderer, "prerenderer");
5880 #endif 5862 #endif
5881 info.addMember(m_listsInvalidatedAtDocument, "listsInvalidatedAtDocument"); 5863 info.addMember(m_listsInvalidatedAtDocument, "listsInvalidatedAtDocument");
5882 info.addMember(m_styleResolverThrowawayTimer, "styleResolverThrowawayTimer") ; 5864 info.addMember(m_styleResolverThrowawayTimer, "styleResolverThrowawayTimer") ;
5883 info.addMember(m_domWindow, "domWindow"); 5865 info.addMember(m_domWindow, "domWindow");
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
5996 return; 5978 return;
5997 5979
5998 Vector<RefPtr<Element> > associatedFormControls; 5980 Vector<RefPtr<Element> > associatedFormControls;
5999 copyToVector(m_associatedFormControls, associatedFormControls); 5981 copyToVector(m_associatedFormControls, associatedFormControls);
6000 5982
6001 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm Controls); 5983 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm Controls);
6002 m_associatedFormControls.clear(); 5984 m_associatedFormControls.clear();
6003 } 5985 }
6004 5986
6005 } // namespace WebCore 5987 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698