Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: chrome/browser/ui/webui/net_internals_ui.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_ui.h" 5 #include "chrome/browser/ui/webui/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>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 #include "ui/base/resource/resource_bundle.h" 64 #include "ui/base/resource/resource_bundle.h"
65 65
66 #ifdef OS_CHROMEOS 66 #ifdef OS_CHROMEOS
67 #include "chrome/browser/chromeos/cros/cros_library.h" 67 #include "chrome/browser/chromeos/cros/cros_library.h"
68 #include "chrome/browser/chromeos/system/syslogs_provider.h" 68 #include "chrome/browser/chromeos/system/syslogs_provider.h"
69 #endif 69 #endif
70 #ifdef OS_WIN 70 #ifdef OS_WIN
71 #include "chrome/browser/net/service_providers_win.h" 71 #include "chrome/browser/net/service_providers_win.h"
72 #endif 72 #endif
73 73
74 using content::BrowserThread;
75
74 namespace { 76 namespace {
75 77
76 // Delay between when an event occurs and when it is passed to the Javascript 78 // Delay between when an event occurs and when it is passed to the Javascript
77 // page. All events that occur during this period are grouped together and 79 // page. All events that occur during this period are grouped together and
78 // sent to the page at once, which reduces context switching and CPU usage. 80 // sent to the page at once, which reduces context switching and CPU usage.
79 const int kNetLogEventDelayMilliseconds = 100; 81 const int kNetLogEventDelayMilliseconds = 100;
80 82
81 // about:net-internals will not even attempt to load a log dump when it 83 // about:net-internals will not even attempt to load a log dump when it
82 // encounters a new version. This should be incremented when significant 84 // encounters a new version. This should be incremented when significant
83 // changes are made that will invalidate the old loading code. 85 // changes are made that will invalidate the old loading code.
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 return constants_dict; 1535 return constants_dict;
1534 } 1536 }
1535 1537
1536 NetInternalsUI::NetInternalsUI(TabContents* contents) : ChromeWebUI(contents) { 1538 NetInternalsUI::NetInternalsUI(TabContents* contents) : ChromeWebUI(contents) {
1537 AddMessageHandler((new NetInternalsMessageHandler())->Attach(this)); 1539 AddMessageHandler((new NetInternalsMessageHandler())->Attach(this));
1538 1540
1539 // Set up the chrome://net-internals/ source. 1541 // Set up the chrome://net-internals/ source.
1540 GetProfile()->GetChromeURLDataManager()->AddDataSource( 1542 GetProfile()->GetChromeURLDataManager()->AddDataSource(
1541 CreateNetInternalsHTMLSource()); 1543 CreateNetInternalsHTMLSource());
1542 } 1544 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/media/media_internals_proxy.cc ('k') | chrome/browser/ui/webui/net_internals_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698