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

Unified Diff: webkit/port/bindings/v8/ScriptController.h

Issue 10719: Add GCController support to test_shell.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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: webkit/port/bindings/v8/ScriptController.h
===================================================================
--- webkit/port/bindings/v8/ScriptController.h (revision 5396)
+++ webkit/port/bindings/v8/ScriptController.h (working copy)
@@ -218,6 +218,20 @@
static bool RecordPlaybackMode() { return m_recordPlaybackMode; }
static void setRecordPlaybackMode(bool value) { m_recordPlaybackMode = value; }
+ // Set/Get ShouldExposeGCController flag.
+ // Some WebKit layout test need window.GCController.collect() to
+ // trigger GC, this flag lets the binding code expose
+ // window.GCController.collect() to the JavaScript code.
+ //
+ // GCController.collect() needs V8 engine expose gc() function by passing
+ // '--expose-gc' flag to the engine.
+ static bool shouldExposeGCController() {
+ return m_shouldExposeGCController;
+ }
+ static void setShouldExposeGCController(bool value) {
+ m_shouldExposeGCController = value;
+ }
+
void finishedWithEvent(Event*);
void setEventHandlerLineno(int lineno);
@@ -245,6 +259,7 @@
private:
static bool m_recordPlaybackMode;
+ static bool m_shouldExposeGCController;
Frame* m_frame;
const String* m_sourceURL;

Powered by Google App Engine
This is Rietveld 408576698