summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r--chrome/browser/renderer_host/render_view_host.cc4
-rw-r--r--chrome/browser/renderer_host/render_view_host.h6
2 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc
index ccbd57a..447745f 100644
--- a/chrome/browser/renderer_host/render_view_host.cc
+++ b/chrome/browser/renderer_host/render_view_host.cc
@@ -1983,6 +1983,10 @@ void RenderViewHost::FilterURL(ChildProcessSecurityPolicy* policy,
}
}
+void RenderViewHost::JavaScriptStressTestControl(int cmd, int param) {
+ Send(new ViewMsg_JavaScriptStressTestControl(routing_id(), cmd, param));
+}
+
void RenderViewHost::OnExtensionPostMessage(
int port_id, const std::string& message) {
if (process()->profile()->GetExtensionMessageService()) {
diff --git a/chrome/browser/renderer_host/render_view_host.h b/chrome/browser/renderer_host/render_view_host.h
index 2174f2f..e341daf 100644
--- a/chrome/browser/renderer_host/render_view_host.h
+++ b/chrome/browser/renderer_host/render_view_host.h
@@ -525,6 +525,12 @@ class RenderViewHost : public RenderWidgetHost {
void DetermineIfPageSupportsInstant(const string16& value,
bool verbatim);
+ // Send a notification to the V8 JavaScript engine to change its parameters
+ // while performing stress testing. |cmd| is one of the values defined by
+ // |ViewHostMsg_JavaScriptStressTestControl_Commands|, which is defined
+ // in render_messages.h.
+ void JavaScriptStressTestControl(int cmd, int param);
+
#if defined(UNIT_TEST)
// These functions shouldn't be necessary outside of testing.