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" |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "content/public/browser/devtools_client_host.h" | 31 #include "content/public/browser/devtools_client_host.h" |
32 #include "content/public/browser/devtools_http_handler_delegate.h" | 32 #include "content/public/browser/devtools_http_handler_delegate.h" |
33 #include "content/public/browser/devtools_manager.h" | 33 #include "content/public/browser/devtools_manager.h" |
34 #include "content/public/browser/favicon_status.h" | 34 #include "content/public/browser/favicon_status.h" |
35 #include "content/public/browser/navigation_entry.h" | 35 #include "content/public/browser/navigation_entry.h" |
36 #include "content/public/browser/notification_service.h" | 36 #include "content/public/browser/notification_service.h" |
37 #include "content/public/browser/notification_types.h" | 37 #include "content/public/browser/notification_types.h" |
38 #include "content/public/browser/render_view_host.h" | 38 #include "content/public/browser/render_view_host.h" |
39 #include "content/public/common/content_client.h" | 39 #include "content/public/common/content_client.h" |
40 #include "content/public/common/url_constants.h" | 40 #include "content/public/common/url_constants.h" |
41 #include "googleurl/src/gurl.h" | |
42 #include "grit/devtools_resources_map.h" | 41 #include "grit/devtools_resources_map.h" |
43 #include "net/base/escape.h" | 42 #include "net/base/escape.h" |
44 #include "net/base/io_buffer.h" | 43 #include "net/base/io_buffer.h" |
45 #include "net/base/ip_endpoint.h" | 44 #include "net/base/ip_endpoint.h" |
46 #include "net/server/http_server_request_info.h" | 45 #include "net/server/http_server_request_info.h" |
47 #include "ui/base/layout.h" | 46 #include "ui/base/layout.h" |
| 47 #include "url/gurl.h" |
48 #include "webkit/common/user_agent/user_agent.h" | 48 #include "webkit/common/user_agent/user_agent.h" |
49 #include "webkit/common/user_agent/user_agent_util.h" | 49 #include "webkit/common/user_agent/user_agent_util.h" |
50 | 50 |
51 namespace content { | 51 namespace content { |
52 | 52 |
53 const int kBufferSize = 16 * 1024; | 53 const int kBufferSize = 16 * 1024; |
54 | 54 |
55 namespace { | 55 namespace { |
56 | 56 |
57 static const char* kProtocolVersion = "1.0"; | 57 static const char* kProtocolVersion = "1.0"; |
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
889 host.c_str(), | 889 host.c_str(), |
890 kPageUrlPrefix, | 890 kPageUrlPrefix, |
891 id.c_str())); | 891 id.c_str())); |
892 std::string devtools_frontend_url = GetFrontendURLInternal( | 892 std::string devtools_frontend_url = GetFrontendURLInternal( |
893 id.c_str(), | 893 id.c_str(), |
894 host); | 894 host); |
895 dictionary->SetString(kTargetDevtoolsFrontendUrlField, devtools_frontend_url); | 895 dictionary->SetString(kTargetDevtoolsFrontendUrlField, devtools_frontend_url); |
896 } | 896 } |
897 | 897 |
898 } // namespace content | 898 } // namespace content |
OLD | NEW |