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

Side by Side Diff: Source/core/frame/FrameHost.h

Issue 952813002: InlinedVisitor: Migrate frame to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 TopControls& topControls() const; 81 TopControls& topControls() const;
82 PinchViewport& pinchViewport() const; 82 PinchViewport& pinchViewport() const;
83 EventHandlerRegistry& eventHandlerRegistry() const; 83 EventHandlerRegistry& eventHandlerRegistry() const;
84 84
85 const AtomicString& overrideEncoding() const { return m_overrideEncoding; } 85 const AtomicString& overrideEncoding() const { return m_overrideEncoding; }
86 void setOverrideEncoding(const AtomicString& encoding) { m_overrideEncoding = encoding; } 86 void setOverrideEncoding(const AtomicString& encoding) { m_overrideEncoding = encoding; }
87 87
88 ConsoleMessageStorage& consoleMessageStorage() const; 88 ConsoleMessageStorage& consoleMessageStorage() const;
89 89
90 void trace(Visitor*); 90 DECLARE_TRACE();
91 91
92 // Don't allow more than a certain number of frames in a page. 92 // Don't allow more than a certain number of frames in a page.
93 // This seems like a reasonable upper bound, and otherwise mutually 93 // This seems like a reasonable upper bound, and otherwise mutually
94 // recursive frameset pages can quickly bring the program to its knees 94 // recursive frameset pages can quickly bring the program to its knees
95 // with exponential growth in the number of frames. 95 // with exponential growth in the number of frames.
96 static const int maxNumberOfFrames = 1000; 96 static const int maxNumberOfFrames = 1000;
97 void incrementSubframeCount() { ++m_subframeCount; } 97 void incrementSubframeCount() { ++m_subframeCount; }
98 void decrementSubframeCount() { ASSERT(m_subframeCount); --m_subframeCount; } 98 void decrementSubframeCount() { ASSERT(m_subframeCount); --m_subframeCount; }
99 int subframeCount() const; 99 int subframeCount() const;
100 100
101 private: 101 private:
102 explicit FrameHost(Page&); 102 explicit FrameHost(Page&);
103 103
104 RawPtrWillBeMember<Page> m_page; 104 RawPtrWillBeMember<Page> m_page;
105 const OwnPtrWillBeMember<TopControls> m_topControls; 105 const OwnPtrWillBeMember<TopControls> m_topControls;
106 const OwnPtrWillBeMember<PinchViewport> m_pinchViewport; 106 const OwnPtrWillBeMember<PinchViewport> m_pinchViewport;
107 const OwnPtrWillBeMember<EventHandlerRegistry> m_eventHandlerRegistry; 107 const OwnPtrWillBeMember<EventHandlerRegistry> m_eventHandlerRegistry;
108 const OwnPtrWillBeMember<ConsoleMessageStorage> m_consoleMessageStorage; 108 const OwnPtrWillBeMember<ConsoleMessageStorage> m_consoleMessageStorage;
109 109
110 AtomicString m_overrideEncoding; 110 AtomicString m_overrideEncoding;
111 int m_subframeCount; 111 int m_subframeCount;
112 }; 112 };
113 113
114 } 114 }
115 115
116 #endif // FrameHost_h 116 #endif // FrameHost_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698