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

Side by Side Diff: content/browser/debugger/devtools_manager.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 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) 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 #include "content/browser/debugger/devtools_manager.h" 5 #include "content/browser/debugger/devtools_manager.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "content/browser/browsing_instance.h" 10 #include "content/browser/browsing_instance.h"
11 #include "content/browser/child_process_security_policy.h" 11 #include "content/browser/child_process_security_policy.h"
12 #include "content/browser/debugger/devtools_client_host.h" 12 #include "content/browser/debugger/devtools_client_host.h"
13 #include "content/browser/debugger/devtools_netlog_observer.h" 13 #include "content/browser/debugger/devtools_netlog_observer.h"
14 #include "content/browser/debugger/render_view_devtools_agent_host.h" 14 #include "content/browser/debugger/render_view_devtools_agent_host.h"
15 #include "content/browser/renderer_host/render_view_host.h" 15 #include "content/browser/renderer_host/render_view_host.h"
16 #include "content/browser/tab_contents/tab_contents.h" 16 #include "content/browser/tab_contents/tab_contents.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 #include "content/public/browser/content_browser_client.h" 18 #include "content/public/browser/content_browser_client.h"
19 #include "googleurl/src/gurl.h" 19 #include "googleurl/src/gurl.h"
20 20
21 using content::BrowserThread;
22
21 // static 23 // static
22 DevToolsManager* DevToolsManager::GetInstance() { 24 DevToolsManager* DevToolsManager::GetInstance() {
23 return content::GetContentClient()->browser()->GetDevToolsManager(); 25 return content::GetContentClient()->browser()->GetDevToolsManager();
24 } 26 }
25 27
26 DevToolsManager::DevToolsManager() 28 DevToolsManager::DevToolsManager()
27 : last_orphan_cookie_(0) { 29 : last_orphan_cookie_(0) {
28 } 30 }
29 31
30 DevToolsManager::~DevToolsManager() { 32 DevToolsManager::~DevToolsManager() {
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 for (AgentToClientHostMap::iterator it = 277 for (AgentToClientHostMap::iterator it =
276 agent_to_client_host_.begin(); 278 agent_to_client_host_.begin();
277 it != agent_to_client_host_.end(); ++it) { 279 it != agent_to_client_host_.end(); ++it) {
278 agents.push_back(it->first); 280 agents.push_back(it->first);
279 } 281 }
280 for (std::vector<DevToolsAgentHost*>::iterator it = agents.begin(); 282 for (std::vector<DevToolsAgentHost*>::iterator it = agents.begin();
281 it != agents.end(); ++it) { 283 it != agents.end(); ++it) {
282 UnregisterDevToolsClientHostFor(*it); 284 UnregisterDevToolsClientHostFor(*it);
283 } 285 }
284 } 286 }
OLDNEW
« no previous file with comments | « content/browser/debugger/devtools_http_protocol_handler.cc ('k') | content/browser/debugger/devtools_netlog_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698