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

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

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 12 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_http_handler_impl.cc
===================================================================
--- content/browser/debugger/devtools_http_handler_impl.cc (revision 116331)
+++ content/browser/debugger/devtools_http_handler_impl.cc (working copy)
@@ -69,7 +69,7 @@
data));
}
- virtual void TabReplaced(TabContents* new_tab) {
+ virtual void TabReplaced(WebContents* new_tab) {
}
private:
@@ -282,19 +282,20 @@
for (Tabs::iterator it = inspectable_tabs.begin();
it != inspectable_tabs.end(); ++it) {
- TabContents* tab_contents = *it;
- NavigationController& controller = tab_contents->GetController();
+ WebContents* web_contents = *it;
+ NavigationController& controller = web_contents->GetController();
NavigationEntry* entry = controller.GetActiveEntry();
if (entry == NULL || !entry->GetURL().is_valid())
continue;
DevToolsAgentHost* agent = DevToolsAgentHostRegistry::GetDevToolsAgentHost(
- tab_contents->GetRenderViewHost());
+ web_contents->GetRenderViewHost());
DevToolsClientHost* client_host = DevToolsManager::GetInstance()->
GetDevToolsClientHostFor(agent);
PageInfo page_info;
- page_info.id = TabContentsIDHelper::GetID(tab_contents);
+ page_info.id = TabContentsIDHelper::GetID(
+ static_cast<TabContents*>(web_contents));
page_info.attached = client_host != NULL;
page_info.url = entry->GetURL().spec();
page_info.title = UTF16ToUTF8(net::EscapeForHTML(entry->GetTitle()));
« no previous file with comments | « content/browser/debugger/devtools_frontend_host.cc ('k') | content/browser/debugger/devtools_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698