OLD | NEW |
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 "chrome/browser/dom_ui/net_internals_ui.h" | 5 #include "chrome/browser/webui/net_internals_ui.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
(...skipping 24 matching lines...) Expand all Loading... |
40 #include "grit/generated_resources.h" | 40 #include "grit/generated_resources.h" |
41 #include "grit/net_internals_resources.h" | 41 #include "grit/net_internals_resources.h" |
42 #include "net/base/escape.h" | 42 #include "net/base/escape.h" |
43 #include "net/base/host_resolver_impl.h" | 43 #include "net/base/host_resolver_impl.h" |
44 #include "net/base/net_errors.h" | 44 #include "net/base/net_errors.h" |
45 #include "net/base/net_util.h" | 45 #include "net/base/net_util.h" |
46 #include "net/base/sys_addrinfo.h" | 46 #include "net/base/sys_addrinfo.h" |
47 #include "net/disk_cache/disk_cache.h" | 47 #include "net/disk_cache/disk_cache.h" |
48 #include "net/http/http_alternate_protocols.h" | 48 #include "net/http/http_alternate_protocols.h" |
49 #include "net/http/http_cache.h" | 49 #include "net/http/http_cache.h" |
50 #include "net/http/http_stream_factory.h" | |
51 #include "net/http/http_network_layer.h" | 50 #include "net/http/http_network_layer.h" |
52 #include "net/http/http_network_session.h" | 51 #include "net/http/http_network_session.h" |
| 52 #include "net/http/http_stream_factory.h" |
53 #include "net/proxy/proxy_service.h" | 53 #include "net/proxy/proxy_service.h" |
54 #include "net/url_request/url_request_context.h" | 54 #include "net/url_request/url_request_context.h" |
55 #include "ui/base/l10n/l10n_util.h" | 55 #include "ui/base/l10n/l10n_util.h" |
56 #include "ui/base/resource/resource_bundle.h" | 56 #include "ui/base/resource/resource_bundle.h" |
57 | 57 |
58 #ifdef OS_WIN | 58 #ifdef OS_WIN |
59 #include "chrome/browser/net/service_providers_win.h" | 59 #include "chrome/browser/net/service_providers_win.h" |
60 #endif | 60 #endif |
61 | 61 |
62 namespace { | 62 namespace { |
(...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1306 //////////////////////////////////////////////////////////////////////////////// | 1306 //////////////////////////////////////////////////////////////////////////////// |
1307 | 1307 |
1308 NetInternalsUI::NetInternalsUI(TabContents* contents) : WebUI(contents) { | 1308 NetInternalsUI::NetInternalsUI(TabContents* contents) : WebUI(contents) { |
1309 AddMessageHandler((new NetInternalsMessageHandler())->Attach(this)); | 1309 AddMessageHandler((new NetInternalsMessageHandler())->Attach(this)); |
1310 | 1310 |
1311 NetInternalsHTMLSource* html_source = new NetInternalsHTMLSource(); | 1311 NetInternalsHTMLSource* html_source = new NetInternalsHTMLSource(); |
1312 | 1312 |
1313 // Set up the chrome://net-internals/ source. | 1313 // Set up the chrome://net-internals/ source. |
1314 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source); | 1314 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source); |
1315 } | 1315 } |
OLD | NEW |