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

Unified Diff: content/renderer/render_view_impl.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/renderer/render_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index 468c268f60e8b0d308f06e551c68259f67180087..ba413779d105f9e27ee2d97ad0cb1cae21d1e2aa 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -182,6 +182,38 @@ class WebMediaPlayerProxyImplAndroid;
// scoped_refptr<int>.
typedef base::RefCountedData<int> SharedRenderViewCounter;
+// Container for all parameters passed to RenderViewImpl's constructor.
+struct RenderViewImplParams {
+ RenderViewImplParams(int32 opener_id,
+ const RendererPreferences& renderer_prefs,
+ const webkit_glue::WebPreferences& webkit_prefs,
+ SharedRenderViewCounter* counter,
+ int32 routing_id,
+ int32 surface_id,
+ int64 session_storage_namespace_id,
+ const string16& frame_name,
+ bool is_renderer_created,
+ bool swapped_out,
+ int32 next_page_id,
+ const WebKit::WebScreenInfo& screen_info,
+ AccessibilityMode accessibility_mode);
+ ~RenderViewImplParams();
+
+ int32 opener_id;
+ const RendererPreferences& renderer_prefs;
+ const webkit_glue::WebPreferences& webkit_prefs;
+ SharedRenderViewCounter* counter;
+ int32 routing_id;
+ int32 surface_id;
+ int64 session_storage_namespace_id;
+ const string16& frame_name;
+ bool is_renderer_created;
+ bool swapped_out;
+ int32 next_page_id;
+ const WebKit::WebScreenInfo& screen_info;
+ AccessibilityMode accessibility_mode;
+};
+
//
// RenderView is an object that manages a WebView object, and provides a
// communication interface with an embedding application process
@@ -767,6 +799,12 @@ class RenderViewImpl : public RenderWidget,
virtual bool CanComposeInline() OVERRIDE;
virtual bool WebWidgetHandlesCompositorScheduling() const OVERRIDE;
+ protected:
+ RenderViewImpl(RenderViewImplParams* params);
+
+ // Do not delete directly. This class is reference counted.
+ virtual ~RenderViewImpl();
+
private:
// For unit tests.
friend class ExternalPopupMenuTest;
@@ -814,23 +852,6 @@ class RenderViewImpl : public RenderWidget,
CONNECTION_ERROR,
};
- RenderViewImpl(int32 opener_id,
- const RendererPreferences& renderer_prefs,
- const webkit_glue::WebPreferences& webkit_prefs,
- SharedRenderViewCounter* counter,
- int32 routing_id,
- int32 surface_id,
- int64 session_storage_namespace_id,
- const string16& frame_name,
- bool is_renderer_created,
- bool swapped_out,
- int32 next_page_id,
- const WebKit::WebScreenInfo& screen_info,
- AccessibilityMode accessibility_mode);
-
- // Do not delete directly. This class is reference counted.
- virtual ~RenderViewImpl();
-
void UpdateURL(WebKit::WebFrame* frame);
void UpdateTitle(WebKit::WebFrame* frame, const string16& title,
WebKit::WebTextDirection title_direction);

Powered by Google App Engine
This is Rietveld 408576698