OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "content/common/frame_replication_state.h" |
12 #include "ui/gfx/geometry/size.h" | 13 #include "ui/gfx/geometry/size.h" |
13 | 14 |
14 struct ViewMsg_Resize_Params; | 15 struct ViewMsg_Resize_Params; |
15 | 16 |
16 namespace blink { | 17 namespace blink { |
17 struct WebScreenInfo; | 18 struct WebScreenInfo; |
18 } | 19 } |
19 | 20 |
20 namespace content { | 21 namespace content { |
21 | 22 |
22 struct RendererPreferences; | 23 struct RendererPreferences; |
23 struct WebPreferences; | 24 struct WebPreferences; |
24 | 25 |
25 // Container for all parameters passed to RenderViewImpl's constructor. | 26 // Container for all parameters passed to RenderViewImpl's constructor. |
26 struct CONTENT_EXPORT RenderViewImplParams { | 27 struct CONTENT_EXPORT RenderViewImplParams { |
27 RenderViewImplParams(int32 opener_id, | 28 RenderViewImplParams(int32 opener_id, |
28 bool window_was_created_with_opener, | 29 bool window_was_created_with_opener, |
29 const RendererPreferences& renderer_prefs, | 30 const RendererPreferences& renderer_prefs, |
30 const WebPreferences& webkit_prefs, | 31 const WebPreferences& webkit_prefs, |
31 int32 routing_id, | 32 int32 routing_id, |
32 int32 main_frame_routing_id, | 33 int32 main_frame_routing_id, |
33 int32 surface_id, | 34 int32 surface_id, |
34 int64 session_storage_namespace_id, | 35 int64 session_storage_namespace_id, |
35 const base::string16& frame_name, | 36 const base::string16& frame_name, |
36 bool is_renderer_created, | 37 bool is_renderer_created, |
37 bool swapped_out, | 38 bool swapped_out, |
| 39 const FrameReplicationState& remote_frame_state, |
38 int32 proxy_routing_id, | 40 int32 proxy_routing_id, |
39 bool hidden, | 41 bool hidden, |
40 bool never_visible, | 42 bool never_visible, |
41 int32 next_page_id, | 43 int32 next_page_id, |
42 const ViewMsg_Resize_Params& initial_size, | 44 const ViewMsg_Resize_Params& initial_size, |
43 bool enable_auto_resize, | 45 bool enable_auto_resize, |
44 const gfx::Size& min_size, | 46 const gfx::Size& min_size, |
45 const gfx::Size& max_size); | 47 const gfx::Size& max_size); |
46 ~RenderViewImplParams(); | 48 ~RenderViewImplParams(); |
47 | 49 |
48 int32 opener_id; | 50 int32 opener_id; |
49 bool window_was_created_with_opener; | 51 bool window_was_created_with_opener; |
50 const RendererPreferences& renderer_prefs; | 52 const RendererPreferences& renderer_prefs; |
51 const WebPreferences& webkit_prefs; | 53 const WebPreferences& webkit_prefs; |
52 int32 routing_id; | 54 int32 routing_id; |
53 int32 main_frame_routing_id; | 55 int32 main_frame_routing_id; |
54 int32 surface_id; | 56 int32 surface_id; |
55 int64 session_storage_namespace_id; | 57 int64 session_storage_namespace_id; |
56 const base::string16& frame_name; | 58 const base::string16& frame_name; |
57 bool is_renderer_created; | 59 bool is_renderer_created; |
58 bool swapped_out; | 60 bool swapped_out; |
| 61 const FrameReplicationState& remote_frame_state; |
59 int32 proxy_routing_id; | 62 int32 proxy_routing_id; |
60 bool hidden; | 63 bool hidden; |
61 bool never_visible; | 64 bool never_visible; |
62 int32 next_page_id; | 65 int32 next_page_id; |
63 const ViewMsg_Resize_Params& initial_size; | 66 const ViewMsg_Resize_Params& initial_size; |
64 bool enable_auto_resize; | 67 bool enable_auto_resize; |
65 gfx::Size min_size; | 68 gfx::Size min_size; |
66 gfx::Size max_size; | 69 gfx::Size max_size; |
67 }; | 70 }; |
68 | 71 |
69 } // namespace content | 72 } // namespace content |
70 | 73 |
71 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_ | 74 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_ |
OLD | NEW |