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

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

Issue 212703005: Preserve Page::openedByDOM state across process swaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tie opened_by_dom with opener. 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_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 class CONTENT_EXPORT RenderViewImpl 174 class CONTENT_EXPORT RenderViewImpl
175 : public RenderWidget, 175 : public RenderWidget,
176 NON_EXPORTED_BASE(public blink::WebViewClient), 176 NON_EXPORTED_BASE(public blink::WebViewClient),
177 NON_EXPORTED_BASE(public blink::WebFrameClient), 177 NON_EXPORTED_BASE(public blink::WebFrameClient),
178 NON_EXPORTED_BASE(public blink::WebPageSerializerClient), 178 NON_EXPORTED_BASE(public blink::WebPageSerializerClient),
179 public RenderView, 179 public RenderView,
180 NON_EXPORTED_BASE(public WebMediaPlayerDelegate), 180 NON_EXPORTED_BASE(public WebMediaPlayerDelegate),
181 public base::SupportsWeakPtr<RenderViewImpl> { 181 public base::SupportsWeakPtr<RenderViewImpl> {
182 public: 182 public:
183 // Creates a new RenderView. |opener_id| is the routing ID of the RenderView 183 // Creates a new RenderView. |opener_id| is the routing ID of the RenderView
184 // responsible for creating this RenderView. 184 // responsible for creating this RenderView.
Charlie Reis 2014/04/05 01:41:25 Worth pointing out that |created_with_opener| can
davidben 2014/04/07 17:57:52 Done.
185 static RenderViewImpl* Create(int32 opener_id, 185 static RenderViewImpl* Create(int32 opener_id,
186 const RendererPreferences& renderer_prefs, 186 const RendererPreferences& renderer_prefs,
187 const WebPreferences& webkit_prefs, 187 const WebPreferences& webkit_prefs,
188 int32 routing_id, 188 int32 routing_id,
189 int32 main_frame_routing_id, 189 int32 main_frame_routing_id,
190 int32 surface_id, 190 int32 surface_id,
191 int64 session_storage_namespace_id, 191 int64 session_storage_namespace_id,
192 const base::string16& frame_name, 192 const base::string16& frame_name,
193 bool is_renderer_created, 193 bool is_renderer_created,
194 bool swapped_out, 194 bool swapped_out,
195 bool hidden, 195 bool hidden,
196 bool created_with_opener,
Charlie Reis 2014/04/05 01:41:25 This should probably be up near opener_id.
davidben 2014/04/07 17:57:52 Done.
196 int32 next_page_id, 197 int32 next_page_id,
197 const blink::WebScreenInfo& screen_info, 198 const blink::WebScreenInfo& screen_info,
198 AccessibilityMode accessibility_mode); 199 AccessibilityMode accessibility_mode);
199 200
200 // Used by content_layouttest_support to hook into the creation of 201 // Used by content_layouttest_support to hook into the creation of
201 // RenderViewImpls. 202 // RenderViewImpls.
202 static void InstallCreateHook( 203 static void InstallCreateHook(
203 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*)); 204 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*));
204 205
205 // Returns the RenderViewImpl containing the given WebView. 206 // Returns the RenderViewImpl containing the given WebView.
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1416 // use the Observer interface to filter IPC messages and receive frame change 1417 // use the Observer interface to filter IPC messages and receive frame change
1417 // notifications. 1418 // notifications.
1418 // --------------------------------------------------------------------------- 1419 // ---------------------------------------------------------------------------
1419 1420
1420 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1421 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1421 }; 1422 };
1422 1423
1423 } // namespace content 1424 } // namespace content
1424 1425
1425 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1426 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698