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

Side by Side Diff: content/browser/renderer_host/render_view_host_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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 } 241 }
242 242
243 // Set up the RenderView child process. Virtual because it is overridden by 243 // Set up the RenderView child process. Virtual because it is overridden by
244 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used 244 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used
245 // as the name of the new top-level frame. 245 // as the name of the new top-level frame.
246 // The |opener_route_id| parameter indicates which RenderView created this 246 // The |opener_route_id| parameter indicates which RenderView created this
247 // (MSG_ROUTING_NONE if none). If |max_page_id| is larger than -1, the 247 // (MSG_ROUTING_NONE if none). If |max_page_id| is larger than -1, the
248 // RenderView is told to start issuing page IDs at |max_page_id| + 1. 248 // RenderView is told to start issuing page IDs at |max_page_id| + 1.
249 virtual bool CreateRenderView(const base::string16& frame_name, 249 virtual bool CreateRenderView(const base::string16& frame_name,
250 int opener_route_id, 250 int opener_route_id,
251 int32 max_page_id); 251 int32 max_page_id,
252 bool created_with_opener);
Charlie Reis 2014/04/05 01:41:25 Please document this parameter above. I agree tha
davidben 2014/04/07 17:57:52 Done. I can also do the PageContext thing if those
nasko 2014/04/08 22:43:25 I don't think we have clear enough plan for page-l
252 253
253 base::TerminationStatus render_view_termination_status() const { 254 base::TerminationStatus render_view_termination_status() const {
254 return render_view_termination_status_; 255 return render_view_termination_status_;
255 } 256 }
256 257
257 // Returns the content specific prefs for this RenderViewHost. 258 // Returns the content specific prefs for this RenderViewHost.
258 WebPreferences GetWebkitPrefs(const GURL& url); 259 WebPreferences GetWebkitPrefs(const GURL& url);
259 260
260 // Sends the given navigation message. Use this rather than sending it 261 // Sends the given navigation message. Use this rather than sending it
261 // yourself since this does the internal bookkeeping described below. This 262 // yourself since this does the internal bookkeeping described below. This
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 708 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
708 }; 709 };
709 710
710 #if defined(COMPILER_MSVC) 711 #if defined(COMPILER_MSVC)
711 #pragma warning(pop) 712 #pragma warning(pop)
712 #endif 713 #endif
713 714
714 } // namespace content 715 } // namespace content
715 716
716 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 717 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698