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

Unified Diff: content/public/test/layouttest_support.h

Issue 1841833005: Revert of Extract WebFrameClient implementation out of WebTestProxyBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: content/public/test/layouttest_support.h
diff --git a/content/public/test/layouttest_support.h b/content/public/test/layouttest_support.h
index 575177314c78400fc3523c8fa7de1d1aec8e99ad..402fd044e164636ad7dd7172cde84c949ca3e039 100644
--- a/content/public/test/layouttest_support.h
+++ b/content/public/test/layouttest_support.h
@@ -32,7 +32,6 @@
}
namespace test_runner {
-class WebFrameTestProxyBase;
class WebTestProxyBase;
}
@@ -52,17 +51,12 @@
// Turn a renderer into layout test mode.
void EnableRendererLayoutTestMode();
-// Enable injecting of a WebTestProxy between WebViews and RenderViews
-// and WebFrameTestProxy between WebFrames and RenderFrames.
-// |view_proxy_creation_callback| is invoked after creating WebTestProxy.
-// |frame_proxy_creation_callback| is called after creating WebFrameTestProxy.
-using ViewProxyCreationCallback =
- base::Callback<void(RenderView*, test_runner::WebTestProxyBase*)>;
-using FrameProxyCreationCallback =
- base::Callback<void(RenderFrame*, test_runner::WebFrameTestProxyBase*)>;
+// Enable injecting of a WebTestProxy between WebViews and RenderViews.
+// |callback| is invoked with a pointer to WebTestProxyBase for each created
+// WebTestProxy.
void EnableWebTestProxyCreation(
- const ViewProxyCreationCallback& view_proxy_creation_callback,
- const FrameProxyCreationCallback& frame_proxy_creation_callback);
+ const base::Callback<void(RenderView*, test_runner::WebTestProxyBase*)>&
+ callback);
typedef base::Callback<void(const blink::WebURLResponse& response,
const std::string& data)> FetchManifestCallback;
« no previous file with comments | « components/test_runner/web_test_proxy.cc ('k') | content/shell/renderer/layout_test/layout_test_content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698