OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_export_ui.h" | 5 #include "chrome/browser/ui/webui/net_export_ui.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
15 #include "base/scoped_observer.h" | 15 #include "base/scoped_observer.h" |
| 16 #include "base/single_thread_task_runner.h" |
16 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
17 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
18 #include "base/values.h" | 19 #include "base/values.h" |
19 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
20 #include "chrome/browser/download/download_prefs.h" | 21 #include "chrome/browser/download/download_prefs.h" |
21 #include "chrome/browser/io_thread.h" | 22 #include "chrome/browser/io_thread.h" |
22 #include "chrome/browser/net/net_export_helper.h" | 23 #include "chrome/browser/net/net_export_helper.h" |
23 #include "chrome/browser/platform_util.h" | 24 #include "chrome/browser/platform_util.h" |
24 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
25 #include "chrome/browser/ui/chrome_select_file_policy.h" | 26 #include "chrome/browser/ui/chrome_select_file_policy.h" |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 | 410 |
410 } // namespace | 411 } // namespace |
411 | 412 |
412 NetExportUI::NetExportUI(content::WebUI* web_ui) : WebUIController(web_ui) { | 413 NetExportUI::NetExportUI(content::WebUI* web_ui) : WebUIController(web_ui) { |
413 web_ui->AddMessageHandler(base::MakeUnique<NetExportMessageHandler>()); | 414 web_ui->AddMessageHandler(base::MakeUnique<NetExportMessageHandler>()); |
414 | 415 |
415 // Set up the chrome://net-export/ source. | 416 // Set up the chrome://net-export/ source. |
416 Profile* profile = Profile::FromWebUI(web_ui); | 417 Profile* profile = Profile::FromWebUI(web_ui); |
417 content::WebUIDataSource::Add(profile, CreateNetExportHTMLSource()); | 418 content::WebUIDataSource::Add(profile, CreateNetExportHTMLSource()); |
418 } | 419 } |
OLD | NEW |