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

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: comment typo 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 CHECK(d); // http://crbug.com/82827 234 CHECK(d); // http://crbug.com/82827
235 delegate_ = d; 235 delegate_ = d;
236 } 236 }
237 237
238 // Set up the RenderView child process. Virtual because it is overridden by 238 // Set up the RenderView child process. Virtual because it is overridden by
239 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used 239 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used
240 // as the name of the new top-level frame. 240 // as the name of the new top-level frame.
241 // The |opener_route_id| parameter indicates which RenderView created this 241 // The |opener_route_id| parameter indicates which RenderView created this
242 // (MSG_ROUTING_NONE if none). If |max_page_id| is larger than -1, the 242 // (MSG_ROUTING_NONE if none). If |max_page_id| is larger than -1, the
243 // RenderView is told to start issuing page IDs at |max_page_id| + 1. 243 // RenderView is told to start issuing page IDs at |max_page_id| + 1.
244 // |window_was_created_with_opener| is true if this top-level frame was
245 // created with an opener. (The opener may have been closed since.)
244 virtual bool CreateRenderView(const base::string16& frame_name, 246 virtual bool CreateRenderView(const base::string16& frame_name,
245 int opener_route_id, 247 int opener_route_id,
246 int32 max_page_id); 248 int32 max_page_id,
249 bool window_was_created_with_opener);
247 250
248 base::TerminationStatus render_view_termination_status() const { 251 base::TerminationStatus render_view_termination_status() const {
249 return render_view_termination_status_; 252 return render_view_termination_status_;
250 } 253 }
251 254
252 // Returns the content specific prefs for this RenderViewHost. 255 // Returns the content specific prefs for this RenderViewHost.
253 WebPreferences GetWebkitPrefs(const GURL& url); 256 WebPreferences GetWebkitPrefs(const GURL& url);
254 257
255 // Sends the given navigation message. Use this rather than sending it 258 // Sends the given navigation message. Use this rather than sending it
256 // yourself since this does the internal bookkeeping described below. This 259 // yourself since this does the internal bookkeeping described below. This
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 701 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
699 }; 702 };
700 703
701 #if defined(COMPILER_MSVC) 704 #if defined(COMPILER_MSVC)
702 #pragma warning(pop) 705 #pragma warning(pop)
703 #endif 706 #endif
704 707
705 } // namespace content 708 } // namespace content
706 709
707 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 710 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698