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 <algorithm> | 7 #include <algorithm> |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/base64.h" | 13 #include "base/base64.h" |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/bind_helpers.h" | 15 #include "base/bind_helpers.h" |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/file_util.h" | 17 #include "base/file_util.h" |
18 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
19 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
20 #include "base/message_loop.h" | 20 #include "base/message_loop.h" |
21 #include "base/platform_file.h" | 21 #include "base/platform_file.h" |
22 #include "base/prefs/pref_member.h" | 22 #include "base/prefs/pref_member.h" |
| 23 #include "base/sequenced_task_runner_helpers.h" |
23 #include "base/string_util.h" | 24 #include "base/string_util.h" |
24 #include "base/strings/string_number_conversions.h" | 25 #include "base/strings/string_number_conversions.h" |
25 #include "base/strings/string_piece.h" | 26 #include "base/strings/string_piece.h" |
26 #include "base/strings/string_split.h" | 27 #include "base/strings/string_split.h" |
27 #include "base/task/sequenced_task_runner_helpers.h" | |
28 #include "base/threading/worker_pool.h" | 28 #include "base/threading/worker_pool.h" |
29 #include "base/utf_string_conversions.h" | 29 #include "base/utf_string_conversions.h" |
30 #include "base/values.h" | 30 #include "base/values.h" |
31 #include "chrome/browser/browser_process.h" | 31 #include "chrome/browser/browser_process.h" |
32 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 32 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
33 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 33 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
34 #include "chrome/browser/download/download_util.h" | 34 #include "chrome/browser/download/download_util.h" |
35 #include "chrome/browser/extensions/extension_service.h" | 35 #include "chrome/browser/extensions/extension_service.h" |
36 #include "chrome/browser/extensions/extension_system.h" | 36 #include "chrome/browser/extensions/extension_system.h" |
37 #include "chrome/browser/io_thread.h" | 37 #include "chrome/browser/io_thread.h" |
(...skipping 1957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1995 } | 1995 } |
1996 | 1996 |
1997 NetInternalsUI::NetInternalsUI(content::WebUI* web_ui) | 1997 NetInternalsUI::NetInternalsUI(content::WebUI* web_ui) |
1998 : WebUIController(web_ui) { | 1998 : WebUIController(web_ui) { |
1999 web_ui->AddMessageHandler(new NetInternalsMessageHandler()); | 1999 web_ui->AddMessageHandler(new NetInternalsMessageHandler()); |
2000 | 2000 |
2001 // Set up the chrome://net-internals/ source. | 2001 // Set up the chrome://net-internals/ source. |
2002 Profile* profile = Profile::FromWebUI(web_ui); | 2002 Profile* profile = Profile::FromWebUI(web_ui); |
2003 content::WebUIDataSource::Add(profile, CreateNetInternalsHTMLSource()); | 2003 content::WebUIDataSource::Add(profile, CreateNetInternalsHTMLSource()); |
2004 } | 2004 } |
OLD | NEW |