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

Unified Diff: content/browser/debugger/devtools_frontend_host.cc

Issue 10065017: TabContents -> WebContentsImpl, part 8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/debugger/devtools_frontend_host.cc
diff --git a/content/browser/debugger/devtools_frontend_host.cc b/content/browser/debugger/devtools_frontend_host.cc
index 676dff9c019ef05acd9784660e366cd606660d43..fcf0e74c694f942842e2f1582ab1600b5edebf7c 100644
--- a/content/browser/debugger/devtools_frontend_host.cc
+++ b/content/browser/debugger/devtools_frontend_host.cc
@@ -18,7 +18,7 @@ DevToolsClientHost* DevToolsClientHost::CreateDevToolsFrontendHost(
WebContents* client_web_contents,
DevToolsFrontendHostDelegate* delegate) {
return new DevToolsFrontendHost(
- static_cast<TabContents*>(client_web_contents), delegate);
+ static_cast<WebContentsImpl*>(client_web_contents), delegate);
}
// static
@@ -29,10 +29,10 @@ void DevToolsClientHost::SetupDevToolsFrontendClient(
}
DevToolsFrontendHost::DevToolsFrontendHost(
- TabContents* tab_contents,
+ WebContentsImpl* web_contents,
DevToolsFrontendHostDelegate* delegate)
- : RenderViewHostObserver(tab_contents->GetRenderViewHost()),
- tab_contents_(tab_contents),
+ : RenderViewHostObserver(web_contents->GetRenderViewHost()),
+ web_contents_(web_contents),
delegate_(delegate) {
}
@@ -42,22 +42,22 @@ DevToolsFrontendHost::~DevToolsFrontendHost() {
void DevToolsFrontendHost::DispatchOnInspectorFrontend(
const std::string& message) {
RenderViewHostImpl* target_host =
- static_cast<RenderViewHostImpl*>(tab_contents_->GetRenderViewHost());
+ static_cast<RenderViewHostImpl*>(web_contents_->GetRenderViewHost());
target_host->Send(new DevToolsClientMsg_DispatchOnInspectorFrontend(
target_host->GetRoutingID(),
message));
}
-void DevToolsFrontendHost::InspectedTabClosing() {
- delegate_->InspectedTabClosing();
+void DevToolsFrontendHost::InspectedContentsClosing() {
+ delegate_->InspectedContentsClosing();
}
void DevToolsFrontendHost::FrameNavigating(const std::string& url) {
delegate_->FrameNavigating(url);
}
-void DevToolsFrontendHost::TabReplaced(WebContents* new_tab) {
- delegate_->TabReplaced(new_tab);
+void DevToolsFrontendHost::ContentsReplaced(WebContents* new_contents) {
+ delegate_->ContentsReplaced(new_contents);
}
bool DevToolsFrontendHost::OnMessageReceived(
« no previous file with comments | « content/browser/debugger/devtools_frontend_host.h ('k') | content/browser/debugger/devtools_http_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698