| OLD | NEW |
| 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 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 | 1033 |
| 1034 // Collect the PluginViews in to a vector to ensure that action the plug-in
takes | 1034 // Collect the PluginViews in to a vector to ensure that action the plug-in
takes |
| 1035 // from below storageBlockingStateChanged does not affect their lifetime. | 1035 // from below storageBlockingStateChanged does not affect their lifetime. |
| 1036 Vector<RefPtr<PluginViewBase>, 32> pluginViewBases; | 1036 Vector<RefPtr<PluginViewBase>, 32> pluginViewBases; |
| 1037 collectPluginViews(pluginViewBases); | 1037 collectPluginViews(pluginViewBases); |
| 1038 | 1038 |
| 1039 for (size_t i = 0; i < pluginViewBases.size(); ++i) | 1039 for (size_t i = 0; i < pluginViewBases.size(); ++i) |
| 1040 pluginViewBases[i]->storageBlockingStateChanged(); | 1040 pluginViewBases[i]->storageBlockingStateChanged(); |
| 1041 } | 1041 } |
| 1042 | 1042 |
| 1043 void Page::privateBrowsingStateChanged() | |
| 1044 { | |
| 1045 bool privateBrowsingEnabled = m_settings->privateBrowsingEnabled(); | |
| 1046 | |
| 1047 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext(
)) | |
| 1048 frame->document()->privateBrowsingStateDidChange(); | |
| 1049 | |
| 1050 // Collect the PluginViews in to a vector to ensure that action the plug-in
takes | |
| 1051 // from below privateBrowsingStateChanged does not affect their lifetime. | |
| 1052 Vector<RefPtr<PluginViewBase>, 32> pluginViewBases; | |
| 1053 collectPluginViews(pluginViewBases); | |
| 1054 | |
| 1055 for (size_t i = 0; i < pluginViewBases.size(); ++i) | |
| 1056 pluginViewBases[i]->privateBrowsingStateChanged(privateBrowsingEnabled); | |
| 1057 } | |
| 1058 | |
| 1059 #if !ASSERT_DISABLED | 1043 #if !ASSERT_DISABLED |
| 1060 void Page::checkSubframeCountConsistency() const | 1044 void Page::checkSubframeCountConsistency() const |
| 1061 { | 1045 { |
| 1062 ASSERT(m_subframeCount >= 0); | 1046 ASSERT(m_subframeCount >= 0); |
| 1063 | 1047 |
| 1064 int subframeCount = 0; | 1048 int subframeCount = 0; |
| 1065 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext(
)) | 1049 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext(
)) |
| 1066 ++subframeCount; | 1050 ++subframeCount; |
| 1067 | 1051 |
| 1068 ASSERT(m_subframeCount + 1 == subframeCount); | 1052 ASSERT(m_subframeCount + 1 == subframeCount); |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1351 , plugInClient(0) | 1335 , plugInClient(0) |
| 1352 , validationMessageClient(0) | 1336 , validationMessageClient(0) |
| 1353 { | 1337 { |
| 1354 } | 1338 } |
| 1355 | 1339 |
| 1356 Page::PageClients::~PageClients() | 1340 Page::PageClients::~PageClients() |
| 1357 { | 1341 { |
| 1358 } | 1342 } |
| 1359 | 1343 |
| 1360 } // namespace WebCore | 1344 } // namespace WebCore |
| OLD | NEW |