| 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 <list> |     7 #include <list> | 
|     8 #include <string> |     8 #include <string> | 
|     9 #include <utility> |     9 #include <utility> | 
|    10 #include <vector> |    10 #include <vector> | 
|    11  |    11  | 
|    12 #include "base/base64.h" |    12 #include "base/base64.h" | 
|    13 #include "base/bind.h" |    13 #include "base/bind.h" | 
|    14 #include "base/bind_helpers.h" |    14 #include "base/bind_helpers.h" | 
|    15 #include "base/command_line.h" |    15 #include "base/command_line.h" | 
|    16 #include "base/file_path.h" |    16 #include "base/file_path.h" | 
|    17 #include "base/file_util.h" |    17 #include "base/file_util.h" | 
|    18 #include "base/memory/weak_ptr.h" |    18 #include "base/memory/weak_ptr.h" | 
|    19 #include "base/message_loop.h" |    19 #include "base/message_loop.h" | 
|    20 #include "base/platform_file.h" |    20 #include "base/platform_file.h" | 
|    21 #include "base/sequenced_task_runner_helpers.h" |    21 #include "base/sequenced_task_runner_helpers.h" | 
|    22 #include "base/string_number_conversions.h" |    22 #include "base/string_number_conversions.h" | 
|    23 #include "base/string_piece.h" |    23 #include "base/string_piece.h" | 
|    24 #include "base/string_split.h" |    24 #include "base/string_split.h" | 
|    25 #include "base/string_util.h" |    25 #include "base/string_util.h" | 
|    26 #include "base/threading/worker_pool.h" |    26 #include "base/threading/worker_pool.h" | 
|    27 #include "base/utf_string_conversions.h" |    27 #include "base/utf_string_conversions.h" | 
|    28 #include "base/values.h" |    28 #include "base/values.h" | 
 |    29 #include "chrome/browser/api/prefs/pref_member.h" | 
|    29 #include "chrome/browser/browser_process.h" |    30 #include "chrome/browser/browser_process.h" | 
|    30 #include "chrome/browser/browsing_data/browsing_data_helper.h" |    31 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 
|    31 #include "chrome/browser/browsing_data/browsing_data_remover.h" |    32 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 
|    32 #include "chrome/browser/download/download_util.h" |    33 #include "chrome/browser/download/download_util.h" | 
|    33 #include "chrome/browser/io_thread.h" |    34 #include "chrome/browser/io_thread.h" | 
|    34 #include "chrome/browser/net/chrome_net_log.h" |    35 #include "chrome/browser/net/chrome_net_log.h" | 
|    35 #include "chrome/browser/net/connection_tester.h" |    36 #include "chrome/browser/net/connection_tester.h" | 
|    36 #include "chrome/browser/net/url_fixer_upper.h" |    37 #include "chrome/browser/net/url_fixer_upper.h" | 
|    37 #include "chrome/browser/prefs/pref_member.h" |  | 
|    38 #include "chrome/browser/prerender/prerender_manager.h" |    38 #include "chrome/browser/prerender/prerender_manager.h" | 
|    39 #include "chrome/browser/prerender/prerender_manager_factory.h" |    39 #include "chrome/browser/prerender/prerender_manager_factory.h" | 
|    40 #include "chrome/browser/profiles/profile.h" |    40 #include "chrome/browser/profiles/profile.h" | 
|    41 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |    41 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 
|    42 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" |    42 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" | 
|    43 #include "chrome/common/chrome_notification_types.h" |    43 #include "chrome/common/chrome_notification_types.h" | 
|    44 #include "chrome/common/chrome_paths.h" |    44 #include "chrome/common/chrome_paths.h" | 
|    45 #include "chrome/common/chrome_version_info.h" |    45 #include "chrome/common/chrome_version_info.h" | 
|    46 #include "chrome/common/logging_chrome.h" |    46 #include "chrome/common/logging_chrome.h" | 
|    47 #include "chrome/common/pref_names.h" |    47 #include "chrome/common/pref_names.h" | 
| (...skipping 1695 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1743 } |  1743 } | 
|  1744  |  1744  | 
|  1745 NetInternalsUI::NetInternalsUI(content::WebUI* web_ui) |  1745 NetInternalsUI::NetInternalsUI(content::WebUI* web_ui) | 
|  1746     : WebUIController(web_ui) { |  1746     : WebUIController(web_ui) { | 
|  1747   web_ui->AddMessageHandler(new NetInternalsMessageHandler()); |  1747   web_ui->AddMessageHandler(new NetInternalsMessageHandler()); | 
|  1748  |  1748  | 
|  1749   // Set up the chrome://net-internals/ source. |  1749   // Set up the chrome://net-internals/ source. | 
|  1750   Profile* profile = Profile::FromWebUI(web_ui); |  1750   Profile* profile = Profile::FromWebUI(web_ui); | 
|  1751   ChromeURLDataManager::AddDataSource(profile, CreateNetInternalsHTMLSource()); |  1751   ChromeURLDataManager::AddDataSource(profile, CreateNetInternalsHTMLSource()); | 
|  1752 } |  1752 } | 
| OLD | NEW |