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

Side by Side Diff: content/renderer/render_view_impl_params.h

Issue 212703005: Preserve Page::openedByDOM state across process swaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: creis comments. Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/view_message_enums.h" 12 #include "content/common/view_message_enums.h"
13 13
14 struct WebPreferences; 14 struct WebPreferences;
15 15
16 namespace blink { 16 namespace blink {
17 struct WebScreenInfo; 17 struct WebScreenInfo;
18 } 18 }
19 19
20 namespace content { 20 namespace content {
21 21
22 struct RendererPreferences; 22 struct RendererPreferences;
23 23
24 // Container for all parameters passed to RenderViewImpl's constructor. 24 // Container for all parameters passed to RenderViewImpl's constructor.
25 struct CONTENT_EXPORT RenderViewImplParams { 25 struct CONTENT_EXPORT RenderViewImplParams {
26 RenderViewImplParams(int32 opener_id, 26 RenderViewImplParams(int32 opener_id,
27 bool window_was_created_with_opener,
27 const RendererPreferences& renderer_prefs, 28 const RendererPreferences& renderer_prefs,
28 const WebPreferences& webkit_prefs, 29 const WebPreferences& webkit_prefs,
29 int32 routing_id, 30 int32 routing_id,
30 int32 main_frame_routing_id, 31 int32 main_frame_routing_id,
31 int32 surface_id, 32 int32 surface_id,
32 int64 session_storage_namespace_id, 33 int64 session_storage_namespace_id,
33 const base::string16& frame_name, 34 const base::string16& frame_name,
34 bool is_renderer_created, 35 bool is_renderer_created,
35 bool swapped_out, 36 bool swapped_out,
36 bool hidden, 37 bool hidden,
37 int32 next_page_id, 38 int32 next_page_id,
38 const blink::WebScreenInfo& screen_info, 39 const blink::WebScreenInfo& screen_info,
39 AccessibilityMode accessibility_mode); 40 AccessibilityMode accessibility_mode);
40 ~RenderViewImplParams(); 41 ~RenderViewImplParams();
41 42
42 int32 opener_id; 43 int32 opener_id;
44 bool window_was_created_with_opener;
43 const RendererPreferences& renderer_prefs; 45 const RendererPreferences& renderer_prefs;
44 const WebPreferences& webkit_prefs; 46 const WebPreferences& webkit_prefs;
45 int32 routing_id; 47 int32 routing_id;
46 int32 main_frame_routing_id; 48 int32 main_frame_routing_id;
47 int32 surface_id; 49 int32 surface_id;
48 int64 session_storage_namespace_id; 50 int64 session_storage_namespace_id;
49 const base::string16& frame_name; 51 const base::string16& frame_name;
50 bool is_renderer_created; 52 bool is_renderer_created;
51 bool swapped_out; 53 bool swapped_out;
52 bool hidden; 54 bool hidden;
53 int32 next_page_id; 55 int32 next_page_id;
54 const blink::WebScreenInfo& screen_info; 56 const blink::WebScreenInfo& screen_info;
55 AccessibilityMode accessibility_mode; 57 AccessibilityMode accessibility_mode;
56 }; 58 };
57 59
58 } // namespace content 60 } // namespace content
59 61
60 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_ 62 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698