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

Unified Diff: content/public/renderer/content_renderer_client.h

Issue 11362161: Use the WebTestProxy for layout tests in content_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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: content/public/renderer/content_renderer_client.h
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index e91470ab45abbf30786f7370b051cb8afed72580..7cae37197f6a89413c4c774dd58f4384665c268b 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -52,6 +52,8 @@ class WebMediaPlayerImpl;
namespace content {
class RenderView;
+class RenderViewImpl;
+struct RenderViewImplParams;
// Embedder API for participating in renderer logic.
class CONTENT_EXPORT ContentRendererClient {
@@ -73,6 +75,12 @@ class CONTENT_EXPORT ContentRendererClient {
// Returns the default text encoding.
virtual std::string GetDefaultEncoding();
+ // Allows the embedder to override creating a RenderViewImpl. The only way an
+ // embedder can achieve this is by using the layout tests support library.
+ virtual bool OverrideCreateRenderViewImpl(
+ RenderViewImplParams* params,
+ RenderViewImpl** render_view_impl);
+
// Allows the embedder to override creating a plugin. If it returns true, then
// |plugin| will contain the created plugin, although it could be NULL. If it
// returns false, the content layer will create the plugin.

Powered by Google App Engine
This is Rietveld 408576698