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/ui/webui/net_internals/net_internals_ui.h" | 5 #include "chrome/browser/ui/webui/net_internals/net_internals_ui.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
(...skipping 29 matching lines...) Expand all Loading... |
40 #include "chrome/browser/io_thread.h" | 40 #include "chrome/browser/io_thread.h" |
41 #include "chrome/browser/net/chrome_network_delegate.h" | 41 #include "chrome/browser/net/chrome_network_delegate.h" |
42 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" | 42 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" |
43 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact
ory.h" | 43 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact
ory.h" |
44 #include "chrome/browser/prerender/prerender_manager.h" | 44 #include "chrome/browser/prerender/prerender_manager.h" |
45 #include "chrome/browser/prerender/prerender_manager_factory.h" | 45 #include "chrome/browser/prerender/prerender_manager_factory.h" |
46 #include "chrome/browser/profiles/profile.h" | 46 #include "chrome/browser/profiles/profile.h" |
47 #include "chrome/common/channel_info.h" | 47 #include "chrome/common/channel_info.h" |
48 #include "chrome/common/chrome_paths.h" | 48 #include "chrome/common/chrome_paths.h" |
49 #include "chrome/common/url_constants.h" | 49 #include "chrome/common/url_constants.h" |
| 50 #include "chrome/grit/net_internals_resources.h" |
50 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp
ression_stats.h" | 51 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp
ression_stats.h" |
51 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_netw
ork_delegate.h" | 52 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_netw
ork_delegate.h" |
52 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv
ice.h" | 53 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv
ice.h" |
53 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event
_store.h" | 54 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event
_store.h" |
54 #include "components/net_log/chrome_net_log.h" | 55 #include "components/net_log/chrome_net_log.h" |
55 #include "components/onc/onc_constants.h" | 56 #include "components/onc/onc_constants.h" |
56 #include "components/prefs/pref_member.h" | 57 #include "components/prefs/pref_member.h" |
57 #include "components/url_formatter/url_fixer.h" | 58 #include "components/url_formatter/url_fixer.h" |
58 #include "components/version_info/version_info.h" | 59 #include "components/version_info/version_info.h" |
59 #include "content/public/browser/browser_thread.h" | 60 #include "content/public/browser/browser_thread.h" |
60 #include "content/public/browser/notification_details.h" | 61 #include "content/public/browser/notification_details.h" |
61 #include "content/public/browser/resource_dispatcher_host.h" | 62 #include "content/public/browser/resource_dispatcher_host.h" |
62 #include "content/public/browser/storage_partition.h" | 63 #include "content/public/browser/storage_partition.h" |
63 #include "content/public/browser/web_contents.h" | 64 #include "content/public/browser/web_contents.h" |
64 #include "content/public/browser/web_ui.h" | 65 #include "content/public/browser/web_ui.h" |
65 #include "content/public/browser/web_ui_data_source.h" | 66 #include "content/public/browser/web_ui_data_source.h" |
66 #include "content/public/browser/web_ui_message_handler.h" | 67 #include "content/public/browser/web_ui_message_handler.h" |
67 #include "grit/net_internals_resources.h" | |
68 #include "net/base/net_errors.h" | 68 #include "net/base/net_errors.h" |
69 #include "net/disk_cache/disk_cache.h" | 69 #include "net/disk_cache/disk_cache.h" |
70 #include "net/dns/host_cache.h" | 70 #include "net/dns/host_cache.h" |
71 #include "net/dns/host_resolver.h" | 71 #include "net/dns/host_resolver.h" |
72 #include "net/http/http_cache.h" | 72 #include "net/http/http_cache.h" |
73 #include "net/http/http_network_layer.h" | 73 #include "net/http/http_network_layer.h" |
74 #include "net/http/http_network_session.h" | 74 #include "net/http/http_network_session.h" |
75 #include "net/http/http_server_properties.h" | 75 #include "net/http/http_server_properties.h" |
76 #include "net/http/http_stream_factory.h" | 76 #include "net/http/http_stream_factory.h" |
77 #include "net/http/transport_security_state.h" | 77 #include "net/http/transport_security_state.h" |
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1175 //////////////////////////////////////////////////////////////////////////////// | 1175 //////////////////////////////////////////////////////////////////////////////// |
1176 | 1176 |
1177 NetInternalsUI::NetInternalsUI(content::WebUI* web_ui) | 1177 NetInternalsUI::NetInternalsUI(content::WebUI* web_ui) |
1178 : WebUIController(web_ui) { | 1178 : WebUIController(web_ui) { |
1179 web_ui->AddMessageHandler(new NetInternalsMessageHandler()); | 1179 web_ui->AddMessageHandler(new NetInternalsMessageHandler()); |
1180 | 1180 |
1181 // Set up the chrome://net-internals/ source. | 1181 // Set up the chrome://net-internals/ source. |
1182 Profile* profile = Profile::FromWebUI(web_ui); | 1182 Profile* profile = Profile::FromWebUI(web_ui); |
1183 content::WebUIDataSource::Add(profile, CreateNetInternalsHTMLSource()); | 1183 content::WebUIDataSource::Add(profile, CreateNetInternalsHTMLSource()); |
1184 } | 1184 } |
OLD | NEW |