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

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

Issue 281663002: Create RenderFrameProxyHost at time of swap-out instead of commit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix IPC_BEGIN_MESSAGE_MAP macro, as _EX version doesn't exist anymore. Created 6 years, 7 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
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 class CONTENT_EXPORT RenderViewImpl 167 class CONTENT_EXPORT RenderViewImpl
168 : public RenderWidget, 168 : public RenderWidget,
169 NON_EXPORTED_BASE(public blink::WebViewClient), 169 NON_EXPORTED_BASE(public blink::WebViewClient),
170 NON_EXPORTED_BASE(public blink::WebPageSerializerClient), 170 NON_EXPORTED_BASE(public blink::WebPageSerializerClient),
171 public RenderView, 171 public RenderView,
172 public base::SupportsWeakPtr<RenderViewImpl> { 172 public base::SupportsWeakPtr<RenderViewImpl> {
173 public: 173 public:
174 // Creates a new RenderView. |opener_id| is the routing ID of the RenderView 174 // Creates a new RenderView. |opener_id| is the routing ID of the RenderView
175 // responsible for creating this RenderView. Note that if the original opener 175 // responsible for creating this RenderView. Note that if the original opener
176 // has been closed, |window_was_created_with_opener| will be true and 176 // has been closed, |window_was_created_with_opener| will be true and
177 // |opener_id| will be MSG_ROUTING_NONE. 177 // |opener_id| will be MSG_ROUTING_NONE. When |swapped_out| is true, the
178 // |proxy_routing_id| is specified, so a RenderFrameProxy can be created for
179 // this RenderView's main RenderFrame.
178 static RenderViewImpl* Create(int32 opener_id, 180 static RenderViewImpl* Create(int32 opener_id,
179 bool window_was_created_with_opener, 181 bool window_was_created_with_opener,
180 const RendererPreferences& renderer_prefs, 182 const RendererPreferences& renderer_prefs,
181 const WebPreferences& webkit_prefs, 183 const WebPreferences& webkit_prefs,
182 int32 routing_id, 184 int32 routing_id,
183 int32 main_frame_routing_id, 185 int32 main_frame_routing_id,
184 int32 surface_id, 186 int32 surface_id,
185 int64 session_storage_namespace_id, 187 int64 session_storage_namespace_id,
186 const base::string16& frame_name, 188 const base::string16& frame_name,
187 bool is_renderer_created, 189 bool is_renderer_created,
188 bool swapped_out, 190 bool swapped_out,
191 int32 proxy_routing_id,
189 bool hidden, 192 bool hidden,
190 bool never_visible, 193 bool never_visible,
191 int32 next_page_id, 194 int32 next_page_id,
192 const blink::WebScreenInfo& screen_info, 195 const blink::WebScreenInfo& screen_info,
193 AccessibilityMode accessibility_mode); 196 AccessibilityMode accessibility_mode);
194 197
195 // Used by content_layouttest_support to hook into the creation of 198 // Used by content_layouttest_support to hook into the creation of
196 // RenderViewImpls. 199 // RenderViewImpls.
197 static void InstallCreateHook( 200 static void InstallCreateHook(
198 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*)); 201 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*));
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 // use the Observer interface to filter IPC messages and receive frame change 1220 // use the Observer interface to filter IPC messages and receive frame change
1218 // notifications. 1221 // notifications.
1219 // --------------------------------------------------------------------------- 1222 // ---------------------------------------------------------------------------
1220 1223
1221 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1224 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1222 }; 1225 };
1223 1226
1224 } // namespace content 1227 } // namespace content
1225 1228
1226 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1229 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698