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

Side by Side Diff: chrome/browser/debugger/inspectable_tab_proxy.cc

Issue 5089001: Cleanup: Include browser.h -> ui/browser.h [Part 3]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes. Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/debugger/inspectable_tab_proxy.h" 5 #include "chrome/browser/debugger/inspectable_tab_proxy.h"
6 6
7 #include "base/string_number_conversions.h" 7 #include "base/string_number_conversions.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "chrome/browser/browser.h"
10 #include "chrome/browser/browser_list.h" 9 #include "chrome/browser/browser_list.h"
11 #include "chrome/browser/debugger/debugger_remote_service.h" 10 #include "chrome/browser/debugger/debugger_remote_service.h"
12 #include "chrome/browser/debugger/devtools_client_host.h" 11 #include "chrome/browser/debugger/devtools_client_host.h"
13 #include "chrome/browser/sessions/session_id.h" 12 #include "chrome/browser/sessions/session_id.h"
14 #include "chrome/browser/tab_contents/tab_contents.h" 13 #include "chrome/browser/tab_contents/tab_contents.h"
15 #include "chrome/browser/tabs/tab_strip_model.h" 14 #include "chrome/browser/tabs/tab_strip_model.h"
15 #include "chrome/browser/ui/browser.h"
16 #include "chrome/common/devtools_messages.h" 16 #include "chrome/common/devtools_messages.h"
17 17
18 DevToolsClientHostImpl::DevToolsClientHostImpl( 18 DevToolsClientHostImpl::DevToolsClientHostImpl(
19 int32 id, 19 int32 id,
20 DebuggerRemoteService* service, 20 DebuggerRemoteService* service,
21 InspectableTabProxy::IdToClientHostMap* map) 21 InspectableTabProxy::IdToClientHostMap* map)
22 : id_(id), 22 : id_(id),
23 service_(service), 23 service_(service),
24 map_(map) {} 24 map_(map) {}
25 25
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 return client_host; 99 return client_host;
100 } 100 }
101 101
102 void InspectableTabProxy::OnRemoteDebuggerDetached() { 102 void InspectableTabProxy::OnRemoteDebuggerDetached() {
103 while (id_to_client_host_map_.size() > 0) { 103 while (id_to_client_host_map_.size() > 0) {
104 IdToClientHostMap::iterator it = id_to_client_host_map_.begin(); 104 IdToClientHostMap::iterator it = id_to_client_host_map_.begin();
105 it->second->debugger_remote_service()->DetachFromTab( 105 it->second->debugger_remote_service()->DetachFromTab(
106 base::IntToString(it->first), NULL); 106 base::IntToString(it->first), NULL);
107 } 107 }
108 } 108 }
OLDNEW
« no previous file with comments | « chrome/browser/debugger/devtools_window.cc ('k') | chrome/browser/device_orientation/device_orientation_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698