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 "content/browser/devtools/devtools_http_handler_impl.h" | 5 #include "content/browser/devtools/devtools_http_handler_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/json/json_writer.h" | 13 #include "base/json/json_writer.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/message_loop/message_loop_proxy.h" | 15 #include "base/message_loop/message_loop_proxy.h" |
16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
17 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
18 #include "base/threading/thread.h" | 18 #include "base/threading/thread.h" |
19 #include "base/values.h" | 19 #include "base/values.h" |
20 #include "content/browser/devtools/devtools_browser_target.h" | 20 #include "content/browser/devtools/devtools_browser_target.h" |
21 #include "content/browser/devtools/devtools_protocol.h" | 21 #include "content/browser/devtools/devtools_protocol.h" |
22 #include "content/browser/devtools/devtools_protocol_constants.h" | 22 #include "content/browser/devtools/devtools_protocol_constants.h" |
23 #include "content/browser/devtools/devtools_system_info_handler.h" | 23 #include "content/browser/devtools/devtools_system_info_handler.h" |
24 #include "content/browser/devtools/devtools_tracing_handler.h" | 24 #include "content/browser/devtools/devtools_tracing_handler.h" |
25 #include "content/browser/devtools/tethering_handler.h" | 25 #include "content/browser/devtools/tethering_handler.h" |
26 #include "content/common/devtools_messages.h" | 26 #include "content/common/devtools_messages.h" |
27 #include "content/public/browser/browser_thread.h" | 27 #include "content/public/browser/browser_thread.h" |
28 #include "content/public/browser/devtools_agent_host.h" | 28 #include "content/public/browser/devtools_agent_host.h" |
29 #include "content/public/browser/devtools_http_handler_delegate.h" | 29 #include "content/public/browser/devtools_http_handler_delegate.h" |
30 #include "content/public/browser/devtools_target.h" | 30 #include "content/public/browser/devtools_target.h" |
31 #include "content/public/common/content_client.h" | 31 #include "content/public/common/content_client.h" |
32 #include "content/public/common/url_constants.h" | 32 #include "content/public/common/url_constants.h" |
33 #include "content/public/common/user_agent.h" | 33 #include "content/public/common/user_agent.h" |
34 #include "content/public/common/user_agent.h" | |
35 #include "grit/devtools_resources_map.h" | 34 #include "grit/devtools_resources_map.h" |
36 #include "net/base/escape.h" | 35 #include "net/base/escape.h" |
37 #include "net/base/io_buffer.h" | 36 #include "net/base/io_buffer.h" |
38 #include "net/base/ip_endpoint.h" | 37 #include "net/base/ip_endpoint.h" |
39 #include "net/base/net_errors.h" | 38 #include "net/base/net_errors.h" |
40 #include "net/server/http_server_request_info.h" | 39 #include "net/server/http_server_request_info.h" |
41 #include "net/server/http_server_response_info.h" | 40 #include "net/server/http_server_response_info.h" |
42 #include "net/socket/server_socket.h" | 41 #include "net/socket/server_socket.h" |
43 | 42 |
44 #if defined(OS_ANDROID) | 43 #if defined(OS_ANDROID) |
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
880 id.c_str(), | 879 id.c_str(), |
881 host); | 880 host); |
882 dictionary->SetString( | 881 dictionary->SetString( |
883 kTargetDevtoolsFrontendUrlField, devtools_frontend_url); | 882 kTargetDevtoolsFrontendUrlField, devtools_frontend_url); |
884 } | 883 } |
885 | 884 |
886 return dictionary; | 885 return dictionary; |
887 } | 886 } |
888 | 887 |
889 } // namespace content | 888 } // namespace content |
OLD | NEW |