OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/string16.h" |
| 11 #include "content/common/content_export.h" |
| 12 #include "content/common/view_message_enums.h" |
| 13 |
| 14 namespace WebKit { |
| 15 struct WebScreenInfo; |
| 16 } |
| 17 |
| 18 namespace webkit_glue { |
| 19 struct WebPreferences; |
| 20 } |
| 21 |
| 22 namespace content { |
| 23 |
| 24 struct RendererPreferences; |
| 25 typedef base::RefCountedData<int> SharedRenderViewCounter; |
| 26 |
| 27 // Container for all parameters passed to RenderViewImpl's constructor. |
| 28 struct CONTENT_EXPORT RenderViewImplParams { |
| 29 RenderViewImplParams(int32 opener_id, |
| 30 const RendererPreferences& renderer_prefs, |
| 31 const webkit_glue::WebPreferences& webkit_prefs, |
| 32 SharedRenderViewCounter* counter, |
| 33 int32 routing_id, |
| 34 int32 surface_id, |
| 35 int64 session_storage_namespace_id, |
| 36 const string16& frame_name, |
| 37 bool is_renderer_created, |
| 38 bool swapped_out, |
| 39 int32 next_page_id, |
| 40 const WebKit::WebScreenInfo& screen_info, |
| 41 AccessibilityMode accessibility_mode); |
| 42 ~RenderViewImplParams(); |
| 43 |
| 44 int32 opener_id; |
| 45 const RendererPreferences& renderer_prefs; |
| 46 const webkit_glue::WebPreferences& webkit_prefs; |
| 47 SharedRenderViewCounter* counter; |
| 48 int32 routing_id; |
| 49 int32 surface_id; |
| 50 int64 session_storage_namespace_id; |
| 51 const string16& frame_name; |
| 52 bool is_renderer_created; |
| 53 bool swapped_out; |
| 54 int32 next_page_id; |
| 55 const WebKit::WebScreenInfo& screen_info; |
| 56 AccessibilityMode accessibility_mode; |
| 57 }; |
| 58 |
| 59 } // namespace content |
| 60 |
| 61 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_ |
OLD | NEW |