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

Unified Diff: third_party/WebKit/Source/core/frame/FrameHost.h

Issue 2752543003: Move FrameHost::m_subframeCount to Page (Closed)
Patch Set: Rebase Created 3 years, 9 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: third_party/WebKit/Source/core/frame/FrameHost.h
diff --git a/third_party/WebKit/Source/core/frame/FrameHost.h b/third_party/WebKit/Source/core/frame/FrameHost.h
index 593a01dac0d68fc88328993efe9a5bd511e11a71..29e5ed4012b26772cd921b8809e0c1189b38ffc1 100644
--- a/third_party/WebKit/Source/core/frame/FrameHost.h
+++ b/third_party/WebKit/Source/core/frame/FrameHost.h
@@ -77,24 +77,14 @@ class CORE_EXPORT FrameHost final
DECLARE_TRACE();
- // Don't allow more than a certain number of frames in a page.
- // This seems like a reasonable upper bound, and otherwise mutually
- // recursive frameset pages can quickly bring the program to its knees
- // with exponential growth in the number of frames.
- static const int maxNumberOfFrames = 1000;
- void incrementSubframeCount() { ++m_subframeCount; }
- void decrementSubframeCount() {
- ASSERT(m_subframeCount);
- --m_subframeCount;
- }
+ void incrementSubframeCount();
+ void decrementSubframeCount();
int subframeCount() const;
private:
explicit FrameHost(Page&);
const Member<Page> m_page;
-
- int m_subframeCount;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/dom/NodeRareData.cpp ('k') | third_party/WebKit/Source/core/frame/FrameHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698