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

Side by Side Diff: content/shell/browser/layout_test/layout_test_devtools_frontend.cc

Issue 2085023003: Simplify detection of new, test-related RenderFrameHosts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/browser/layout_test/layout_test_devtools_frontend.h" 5 #include "content/shell/browser/layout_test/layout_test_devtools_frontend.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 void LayoutTestDevToolsFrontend::RenderProcessGone( 131 void LayoutTestDevToolsFrontend::RenderProcessGone(
132 base::TerminationStatus status) { 132 base::TerminationStatus status) {
133 BlinkTestController::Get()->DevToolsProcessCrashed(); 133 BlinkTestController::Get()->DevToolsProcessCrashed();
134 } 134 }
135 135
136 void LayoutTestDevToolsFrontend::RenderFrameCreated( 136 void LayoutTestDevToolsFrontend::RenderFrameCreated(
137 RenderFrameHost* render_frame_host) { 137 RenderFrameHost* render_frame_host) {
138 BlinkTestController::Get()->HandleNewRenderFrameHost(render_frame_host); 138 BlinkTestController::Get()->HandleNewRenderFrameHost(render_frame_host);
139 } 139 }
140 140
141 void LayoutTestDevToolsFrontend::RenderFrameHostChanged(
142 RenderFrameHost* old_host,
143 RenderFrameHost* new_host) {
144 BlinkTestController::Get()->HandleNewRenderFrameHost(new_host);
145 }
146
147 } // namespace content 141 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698