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

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

Issue 9150021: Rename WebUI to WebUIImpl. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 #include "content/browser/tab_contents/render_view_host_manager.h" 5 #include "content/browser/tab_contents/render_view_host_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "content/browser/debugger/devtools_manager_impl.h" 11 #include "content/browser/debugger/devtools_manager_impl.h"
12 #include "content/browser/renderer_host/render_view_host.h" 12 #include "content/browser/renderer_host/render_view_host.h"
13 #include "content/browser/renderer_host/render_view_host_factory.h" 13 #include "content/browser/renderer_host/render_view_host_factory.h"
14 #include "content/browser/renderer_host/render_widget_host_view.h" 14 #include "content/browser/renderer_host/render_widget_host_view.h"
15 #include "content/browser/site_instance.h" 15 #include "content/browser/site_instance.h"
16 #include "content/browser/tab_contents/navigation_controller_impl.h" 16 #include "content/browser/tab_contents/navigation_controller_impl.h"
17 #include "content/browser/tab_contents/navigation_entry_impl.h" 17 #include "content/browser/tab_contents/navigation_entry_impl.h"
18 #include "content/browser/webui/web_ui.h" 18 #include "content/browser/webui/web_ui_impl.h"
19 #include "content/common/view_messages.h" 19 #include "content/common/view_messages.h"
20 #include "content/public/browser/content_browser_client.h" 20 #include "content/public/browser/content_browser_client.h"
21 #include "content/public/browser/notification_service.h" 21 #include "content/public/browser/notification_service.h"
22 #include "content/public/browser/notification_types.h" 22 #include "content/public/browser/notification_types.h"
23 #include "content/public/browser/render_view_host_delegate.h" 23 #include "content/public/browser/render_view_host_delegate.h"
24 #include "content/public/browser/web_contents_view.h" 24 #include "content/public/browser/web_contents_view.h"
25 #include "content/public/browser/web_ui_controller.h" 25 #include "content/public/browser/web_ui_controller.h"
26 #include "content/public/browser/web_ui_factory.h" 26 #include "content/public/browser/web_ui_factory.h"
27 #include "content/public/common/content_switches.h" 27 #include "content/public/common/content_switches.h"
28 #include "content/public/common/url_constants.h" 28 #include "content/public/common/url_constants.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // A navigation in the original page has taken place. Cancel the pending 209 // A navigation in the original page has taken place. Cancel the pending
210 // one. 210 // one.
211 CancelPending(); 211 CancelPending();
212 cross_navigation_pending_ = false; 212 cross_navigation_pending_ = false;
213 } else { 213 } else {
214 // No one else should be sending us DidNavigate in this state. 214 // No one else should be sending us DidNavigate in this state.
215 DCHECK(false); 215 DCHECK(false);
216 } 216 }
217 } 217 }
218 218
219 void RenderViewHostManager::SetWebUIPostCommit(WebUI* web_ui) { 219 void RenderViewHostManager::SetWebUIPostCommit(WebUIImpl* web_ui) {
220 DCHECK(!web_ui_.get()); 220 DCHECK(!web_ui_.get());
221 web_ui_.reset(web_ui); 221 web_ui_.reset(web_ui);
222 } 222 }
223 223
224 void RenderViewHostManager::RendererAbortedProvisionalLoad( 224 void RenderViewHostManager::RendererAbortedProvisionalLoad(
225 RenderViewHost* render_view_host) { 225 RenderViewHost* render_view_host) {
226 // We used to cancel the pending renderer here for cross-site downloads. 226 // We used to cancel the pending renderer here for cross-site downloads.
227 // However, it's not safe to do that because the download logic repeatedly 227 // However, it's not safe to do that because the download logic repeatedly
228 // looks for this TabContents based on a render view ID. Instead, we just 228 // looks for this TabContents based on a render view ID. Instead, we just
229 // leave the pending renderer around until the next navigation event 229 // leave the pending renderer around until the next navigation event
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 } 811 }
812 } 812 }
813 813
814 bool RenderViewHostManager::IsSwappedOut(RenderViewHost* rvh) { 814 bool RenderViewHostManager::IsSwappedOut(RenderViewHost* rvh) {
815 if (!rvh->site_instance()) 815 if (!rvh->site_instance())
816 return false; 816 return false;
817 817
818 return swapped_out_hosts_.find(rvh->site_instance()->id()) != 818 return swapped_out_hosts_.find(rvh->site_instance()->id()) !=
819 swapped_out_hosts_.end(); 819 swapped_out_hosts_.end();
820 } 820 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/render_view_host_manager.h ('k') | content/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698