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

Side by Side Diff: content/browser/tab_contents/render_view_host_manager.h

Issue 6927014: Avoid exiting the renderer process if it has a pending render view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix pre-render issue. Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 void DidNavigateMainFrame(RenderViewHost* render_view_host); 137 void DidNavigateMainFrame(RenderViewHost* render_view_host);
138 138
139 // Set the WebUI after committing a page load. This is useful for navigations 139 // Set the WebUI after committing a page load. This is useful for navigations
140 // initiated from a renderer, where we want to give the new renderer WebUI 140 // initiated from a renderer, where we want to give the new renderer WebUI
141 // privileges from the originating renderer. 141 // privileges from the originating renderer.
142 void SetWebUIPostCommit(WebUI* web_ui); 142 void SetWebUIPostCommit(WebUI* web_ui);
143 143
144 // Called when a provisional load on the given renderer is aborted. 144 // Called when a provisional load on the given renderer is aborted.
145 void RendererAbortedProvisionalLoad(RenderViewHost* render_view_host); 145 void RendererAbortedProvisionalLoad(RenderViewHost* render_view_host);
146 146
147 // Called when a renderer process is starting to close. We should not
148 // schedule new navigations in its swapped out RenderViewHosts after this.
149 void RendererProcessClosing(RenderProcessHost* render_process_host);
150
147 // Sets the passed passed interstitial as the currently showing interstitial. 151 // Sets the passed passed interstitial as the currently showing interstitial.
148 // |interstitial_page| should be non NULL (use the remove_interstitial_page 152 // |interstitial_page| should be non NULL (use the remove_interstitial_page
149 // method to unset the interstitial) and no interstitial page should be set 153 // method to unset the interstitial) and no interstitial page should be set
150 // when there is already a non NULL interstitial page set. 154 // when there is already a non NULL interstitial page set.
151 void set_interstitial_page(InterstitialPage* interstitial_page) { 155 void set_interstitial_page(InterstitialPage* interstitial_page) {
152 DCHECK(!interstitial_page_ && interstitial_page); 156 DCHECK(!interstitial_page_ && interstitial_page);
153 interstitial_page_ = interstitial_page; 157 interstitial_page_ = interstitial_page;
154 } 158 }
155 159
156 // Unsets the currently showing interstitial. 160 // Unsets the currently showing interstitial.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 }; 268 };
265 269
266 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old 270 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old
267 // host can be NULL when the first RenderViewHost is set. 271 // host can be NULL when the first RenderViewHost is set.
268 struct RenderViewHostSwitchedDetails { 272 struct RenderViewHostSwitchedDetails {
269 RenderViewHost* old_host; 273 RenderViewHost* old_host;
270 RenderViewHost* new_host; 274 RenderViewHost* new_host;
271 }; 275 };
272 276
273 #endif // CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ 277 #endif // CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698