| 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 26 matching lines...) Expand all Loading... |
| 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" | 41 #include "googleurl/src/gurl.h" |
| 42 #include "grit/devtools_resources_map.h" | 42 #include "grit/devtools_resources_map.h" |
| 43 #include "net/base/escape.h" | 43 #include "net/base/escape.h" |
| 44 #include "net/base/io_buffer.h" | 44 #include "net/base/io_buffer.h" |
| 45 #include "net/base/ip_endpoint.h" | 45 #include "net/base/ip_endpoint.h" |
| 46 #include "net/server/http_server_request_info.h" | 46 #include "net/server/http_server_request_info.h" |
| 47 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 47 #include "third_party/WebKit/public/platform/WebString.h" |
| 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" | 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" |
| 49 #include "ui/base/layout.h" | 49 #include "ui/base/layout.h" |
| 50 #include "webkit/user_agent/user_agent.h" | 50 #include "webkit/user_agent/user_agent.h" |
| 51 #include "webkit/user_agent/user_agent_util.h" | 51 #include "webkit/user_agent/user_agent_util.h" |
| 52 | 52 |
| 53 namespace content { | 53 namespace content { |
| 54 | 54 |
| 55 const int kBufferSize = 16 * 1024; | 55 const int kBufferSize = 16 * 1024; |
| 56 | 56 |
| 57 namespace { | 57 namespace { |
| (...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 host.c_str(), | 884 host.c_str(), |
| 885 kPageUrlPrefix, | 885 kPageUrlPrefix, |
| 886 id.c_str())); | 886 id.c_str())); |
| 887 std::string devtools_frontend_url = GetFrontendURLInternal( | 887 std::string devtools_frontend_url = GetFrontendURLInternal( |
| 888 id.c_str(), | 888 id.c_str(), |
| 889 host); | 889 host); |
| 890 dictionary->SetString(kTargetDevtoolsFrontendUrlField, devtools_frontend_url); | 890 dictionary->SetString(kTargetDevtoolsFrontendUrlField, devtools_frontend_url); |
| 891 } | 891 } |
| 892 | 892 |
| 893 } // namespace content | 893 } // namespace content |
| OLD | NEW |