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

Side by Side Diff: Source/WebCore/page/Page.cpp

Issue 13861033: Remove Apple's unused implementation of private browsing from WebCore (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Repatch to ToT 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
« no previous file with comments | « Source/WebCore/page/Page.h ('k') | Source/WebCore/page/PageConsole.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 980
981 // Collect the PluginViews in to a vector to ensure that action the plug-in takes 981 // Collect the PluginViews in to a vector to ensure that action the plug-in takes
982 // from below storageBlockingStateChanged does not affect their lifetime. 982 // from below storageBlockingStateChanged does not affect their lifetime.
983 Vector<RefPtr<PluginViewBase>, 32> pluginViewBases; 983 Vector<RefPtr<PluginViewBase>, 32> pluginViewBases;
984 collectPluginViews(pluginViewBases); 984 collectPluginViews(pluginViewBases);
985 985
986 for (size_t i = 0; i < pluginViewBases.size(); ++i) 986 for (size_t i = 0; i < pluginViewBases.size(); ++i)
987 pluginViewBases[i]->storageBlockingStateChanged(); 987 pluginViewBases[i]->storageBlockingStateChanged();
988 } 988 }
989 989
990 void Page::privateBrowsingStateChanged()
991 {
992 bool privateBrowsingEnabled = m_settings->privateBrowsingEnabled();
993
994 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext( ))
995 frame->document()->privateBrowsingStateDidChange();
996
997 // Collect the PluginViews in to a vector to ensure that action the plug-in takes
998 // from below privateBrowsingStateChanged does not affect their lifetime.
999 Vector<RefPtr<PluginViewBase>, 32> pluginViewBases;
1000 collectPluginViews(pluginViewBases);
1001
1002 for (size_t i = 0; i < pluginViewBases.size(); ++i)
1003 pluginViewBases[i]->privateBrowsingStateChanged(privateBrowsingEnabled);
1004 }
1005
1006 #if !ASSERT_DISABLED 990 #if !ASSERT_DISABLED
1007 void Page::checkSubframeCountConsistency() const 991 void Page::checkSubframeCountConsistency() const
1008 { 992 {
1009 ASSERT(m_subframeCount >= 0); 993 ASSERT(m_subframeCount >= 0);
1010 994
1011 int subframeCount = 0; 995 int subframeCount = 0;
1012 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext( )) 996 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext( ))
1013 ++subframeCount; 997 ++subframeCount;
1014 998
1015 ASSERT(m_subframeCount + 1 == subframeCount); 999 ASSERT(m_subframeCount + 1 == subframeCount);
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
1296 , plugInClient(0) 1280 , plugInClient(0)
1297 , validationMessageClient(0) 1281 , validationMessageClient(0)
1298 { 1282 {
1299 } 1283 }
1300 1284
1301 Page::PageClients::~PageClients() 1285 Page::PageClients::~PageClients()
1302 { 1286 {
1303 } 1287 }
1304 1288
1305 } // namespace WebCore 1289 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/page/Page.h ('k') | Source/WebCore/page/PageConsole.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698