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 <list> | 10 #include <list> |
11 #include <string> | 11 #include <string> |
12 #include <utility> | 12 #include <utility> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/base64.h" | 15 #include "base/base64.h" |
16 #include "base/bind.h" | 16 #include "base/bind.h" |
17 #include "base/bind_helpers.h" | 17 #include "base/bind_helpers.h" |
18 #include "base/command_line.h" | 18 #include "base/command_line.h" |
19 #include "base/files/file.h" | 19 #include "base/files/file.h" |
20 #include "base/files/file_path.h" | 20 #include "base/files/file_path.h" |
21 #include "base/files/file_util.h" | 21 #include "base/files/file_util.h" |
22 #include "base/macros.h" | 22 #include "base/macros.h" |
23 #include "base/memory/weak_ptr.h" | 23 #include "base/memory/weak_ptr.h" |
24 #include "base/message_loop/message_loop.h" | 24 #include "base/message_loop/message_loop.h" |
25 #include "base/prefs/pref_member.h" | |
26 #include "base/sequenced_task_runner_helpers.h" | 25 #include "base/sequenced_task_runner_helpers.h" |
27 #include "base/strings/string_number_conversions.h" | 26 #include "base/strings/string_number_conversions.h" |
28 #include "base/strings/string_piece.h" | 27 #include "base/strings/string_piece.h" |
29 #include "base/strings/string_split.h" | 28 #include "base/strings/string_split.h" |
30 #include "base/strings/string_util.h" | 29 #include "base/strings/string_util.h" |
31 #include "base/strings/utf_string_conversions.h" | 30 #include "base/strings/utf_string_conversions.h" |
32 #include "base/values.h" | 31 #include "base/values.h" |
33 #include "build/build_config.h" | 32 #include "build/build_config.h" |
34 #include "chrome/browser/browser_process.h" | 33 #include "chrome/browser/browser_process.h" |
35 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 34 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
(...skipping 10 matching lines...) Expand all Loading... |
46 #include "chrome/browser/profiles/profile.h" | 45 #include "chrome/browser/profiles/profile.h" |
47 #include "chrome/common/channel_info.h" | 46 #include "chrome/common/channel_info.h" |
48 #include "chrome/common/chrome_paths.h" | 47 #include "chrome/common/chrome_paths.h" |
49 #include "chrome/common/url_constants.h" | 48 #include "chrome/common/url_constants.h" |
50 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp
ression_stats.h" | 49 #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" | 50 #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" | 51 #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" | 52 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event
_store.h" |
54 #include "components/net_log/chrome_net_log.h" | 53 #include "components/net_log/chrome_net_log.h" |
55 #include "components/onc/onc_constants.h" | 54 #include "components/onc/onc_constants.h" |
| 55 #include "components/prefs/pref_member.h" |
56 #include "components/url_formatter/url_fixer.h" | 56 #include "components/url_formatter/url_fixer.h" |
57 #include "components/version_info/version_info.h" | 57 #include "components/version_info/version_info.h" |
58 #include "content/public/browser/browser_thread.h" | 58 #include "content/public/browser/browser_thread.h" |
59 #include "content/public/browser/notification_details.h" | 59 #include "content/public/browser/notification_details.h" |
60 #include "content/public/browser/resource_dispatcher_host.h" | 60 #include "content/public/browser/resource_dispatcher_host.h" |
61 #include "content/public/browser/web_contents.h" | 61 #include "content/public/browser/web_contents.h" |
62 #include "content/public/browser/web_ui.h" | 62 #include "content/public/browser/web_ui.h" |
63 #include "content/public/browser/web_ui_data_source.h" | 63 #include "content/public/browser/web_ui_data_source.h" |
64 #include "content/public/browser/web_ui_message_handler.h" | 64 #include "content/public/browser/web_ui_message_handler.h" |
65 #include "grit/net_internals_resources.h" | 65 #include "grit/net_internals_resources.h" |
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1174 //////////////////////////////////////////////////////////////////////////////// | 1174 //////////////////////////////////////////////////////////////////////////////// |
1175 | 1175 |
1176 NetInternalsUI::NetInternalsUI(content::WebUI* web_ui) | 1176 NetInternalsUI::NetInternalsUI(content::WebUI* web_ui) |
1177 : WebUIController(web_ui) { | 1177 : WebUIController(web_ui) { |
1178 web_ui->AddMessageHandler(new NetInternalsMessageHandler()); | 1178 web_ui->AddMessageHandler(new NetInternalsMessageHandler()); |
1179 | 1179 |
1180 // Set up the chrome://net-internals/ source. | 1180 // Set up the chrome://net-internals/ source. |
1181 Profile* profile = Profile::FromWebUI(web_ui); | 1181 Profile* profile = Profile::FromWebUI(web_ui); |
1182 content::WebUIDataSource::Add(profile, CreateNetInternalsHTMLSource()); | 1182 content::WebUIDataSource::Add(profile, CreateNetInternalsHTMLSource()); |
1183 } | 1183 } |
OLD | NEW |