| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dom_ui/net_internals_ui.h" | 5 #include "chrome/browser/dom_ui/net_internals_ui.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1020 | 1020 |
| 1021 NetInternalsUI::NetInternalsUI(TabContents* contents) : DOMUI(contents) { | 1021 NetInternalsUI::NetInternalsUI(TabContents* contents) : DOMUI(contents) { |
| 1022 AddMessageHandler((new NetInternalsMessageHandler())->Attach(this)); | 1022 AddMessageHandler((new NetInternalsMessageHandler())->Attach(this)); |
| 1023 | 1023 |
| 1024 NetInternalsHTMLSource* html_source = new NetInternalsHTMLSource(); | 1024 NetInternalsHTMLSource* html_source = new NetInternalsHTMLSource(); |
| 1025 | 1025 |
| 1026 // Set up the chrome://net-internals/ source. | 1026 // Set up the chrome://net-internals/ source. |
| 1027 BrowserThread::PostTask( | 1027 BrowserThread::PostTask( |
| 1028 BrowserThread::IO, FROM_HERE, | 1028 BrowserThread::IO, FROM_HERE, |
| 1029 NewRunnableMethod( | 1029 NewRunnableMethod( |
| 1030 Singleton<ChromeURLDataManager>::get(), | 1030 ChromeURLDataManager::GetInstance(), |
| 1031 &ChromeURLDataManager::AddDataSource, | 1031 &ChromeURLDataManager::AddDataSource, |
| 1032 make_scoped_refptr(html_source))); | 1032 make_scoped_refptr(html_source))); |
| 1033 } | 1033 } |
| OLD | NEW |