| OLD | NEW |
| 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 "chrome/browser/devtools/remote_debugging_server.h" | 5 #include "chrome/browser/devtools/remote_debugging_server.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
| 15 #include "chrome/browser/devtools/devtools_window.h" | 15 #include "chrome/browser/devtools/devtools_window.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/browser/ui/browser.h" | 17 #include "chrome/browser/ui/browser.h" |
| 18 #include "chrome/browser/ui/browser_list.h" | 18 #include "chrome/browser/ui/browser_list.h" |
| 19 #include "chrome/common/chrome_content_client.h" | 19 #include "chrome/common/chrome_content_client.h" |
| 20 #include "chrome/common/chrome_paths.h" | 20 #include "chrome/common/chrome_paths.h" |
| 21 #include "components/version_info/version_info.h" | 21 #include "components/version_info/version_info.h" |
| 22 #include "content/public/browser/devtools_agent_host.h" | 22 #include "content/public/browser/devtools_agent_host.h" |
| 23 #include "content/public/browser/devtools_frontend_host.h" | |
| 24 #include "content/public/browser/devtools_socket_factory.h" | 23 #include "content/public/browser/devtools_socket_factory.h" |
| 25 #include "net/base/net_errors.h" | 24 #include "net/base/net_errors.h" |
| 26 #include "net/log/net_log_source.h" | 25 #include "net/log/net_log_source.h" |
| 27 #include "net/socket/tcp_server_socket.h" | 26 #include "net/socket/tcp_server_socket.h" |
| 28 #include "third_party/WebKit/public/public_features.h" | 27 #include "third_party/WebKit/public/public_features.h" |
| 29 #include "ui/base/resource/resource_bundle.h" | 28 #include "ui/base/resource/resource_bundle.h" |
| 30 | 29 |
| 31 namespace { | 30 namespace { |
| 32 | 31 |
| 33 base::LazyInstance<bool>::Leaky g_tethering_enabled = LAZY_INSTANCE_INITIALIZER; | 32 base::LazyInstance<bool>::Leaky g_tethering_enabled = LAZY_INSTANCE_INITIALIZER; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 version_info::GetProductNameAndVersionForUserAgent(), | 116 version_info::GetProductNameAndVersionForUserAgent(), |
| 118 ::GetUserAgent()); | 117 ::GetUserAgent()); |
| 119 } | 118 } |
| 120 | 119 |
| 121 RemoteDebuggingServer::~RemoteDebuggingServer() { | 120 RemoteDebuggingServer::~RemoteDebuggingServer() { |
| 122 // Ensure Profile is alive, because the whole DevTools subsystem | 121 // Ensure Profile is alive, because the whole DevTools subsystem |
| 123 // accesses it during shutdown. | 122 // accesses it during shutdown. |
| 124 DCHECK(g_browser_process->profile_manager()); | 123 DCHECK(g_browser_process->profile_manager()); |
| 125 content::DevToolsAgentHost::StopRemoteDebuggingServer(); | 124 content::DevToolsAgentHost::StopRemoteDebuggingServer(); |
| 126 } | 125 } |
| OLD | NEW |