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 <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
15 #include "chrome/browser/net/chrome_net_log.h" | 15 #include "chrome/browser/net/chrome_net_log.h" |
16 #include "chrome/browser/net/net_log_temp_file.h" | 16 #include "chrome/browser/net/net_log_temp_file.h" |
17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
20 #include "content/public/browser/url_data_source.h" | 20 #include "content/public/browser/url_data_source.h" |
21 #include "content/public/browser/web_contents.h" | 21 #include "content/public/browser/web_contents.h" |
22 #include "content/public/browser/web_ui.h" | 22 #include "content/public/browser/web_ui.h" |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 234 |
235 } // namespace | 235 } // namespace |
236 | 236 |
237 NetExportUI::NetExportUI(content::WebUI* web_ui) : WebUIController(web_ui) { | 237 NetExportUI::NetExportUI(content::WebUI* web_ui) : WebUIController(web_ui) { |
238 web_ui->AddMessageHandler(new NetExportMessageHandler()); | 238 web_ui->AddMessageHandler(new NetExportMessageHandler()); |
239 | 239 |
240 // Set up the chrome://net-export/ source. | 240 // Set up the chrome://net-export/ source. |
241 Profile* profile = Profile::FromWebUI(web_ui); | 241 Profile* profile = Profile::FromWebUI(web_ui); |
242 content::WebUIDataSource::Add(profile, CreateNetExportHTMLSource()); | 242 content::WebUIDataSource::Add(profile, CreateNetExportHTMLSource()); |
243 } | 243 } |
OLD | NEW |