Chromium Code Reviews| Index: chrome/browser/ui/webui/net_internals/net_internals_ui.cc |
| =================================================================== |
| --- chrome/browser/ui/webui/net_internals/net_internals_ui.cc (revision 140753) |
| +++ chrome/browser/ui/webui/net_internals/net_internals_ui.cc (working copy) |
| @@ -479,20 +479,16 @@ |
| void OnSetLogLevel(const ListValue* list); |
| // ChromeNetLog::ThreadSafeObserver implementation: |
| - virtual void OnAddEntry(net::NetLog::EventType type, |
| - const base::TimeTicks& time, |
| - const net::NetLog::Source& source, |
| - net::NetLog::EventPhase phase, |
| - net::NetLog::EventParameters* params); |
| + virtual void OnAddEntry(const net::NetLog::Entry& entry) OVERRIDE; |
| // ConnectionTester::Delegate implementation: |
| - virtual void OnStartConnectionTestSuite(); |
| + virtual void OnStartConnectionTestSuite() OVERRIDE; |
| virtual void OnStartConnectionTestExperiment( |
| - const ConnectionTester::Experiment& experiment); |
| + const ConnectionTester::Experiment& experiment) OVERRIDE; |
| virtual void OnCompletedConnectionTestExperiment( |
| const ConnectionTester::Experiment& experiment, |
| - int result); |
| - virtual void OnCompletedConnectionTestSuite(); |
| + int result) OVERRIDE; |
| + virtual void OnCompletedConnectionTestSuite() OVERRIDE; |
| // Helper that calls g_browser.receive in the renderer, passing in |command| |
| // and |arg|. Takes ownership of |arg|. If the renderer is displaying a log |
| @@ -1503,19 +1499,15 @@ |
| // Note that unlike other methods of IOThreadImpl, this function |
| // can be called from ANY THREAD. |
| void NetInternalsMessageHandler::IOThreadImpl::OnAddEntry( |
| - net::NetLog::EventType type, |
| - const base::TimeTicks& time, |
| - const net::NetLog::Source& source, |
| - net::NetLog::EventPhase phase, |
| - net::NetLog::EventParameters* params) { |
| + const net::NetLog::Entry& entry) { |
| BrowserThread::PostTask( |
| BrowserThread::IO, FROM_HERE, |
| base::Bind(&IOThreadImpl::AddEntryToQueue, this, |
| - net::NetLog::EntryToDictionaryValue(type, time, source, phase, |
| - params, false))); |
| + entry.ToValue())); |
|
eroman
2012/06/06 21:27:11
nit: does this fit on preceding line?
mmenke
2012/06/07 19:20:46
Done. (And the one below, too, which I split into
|
| } |
| -void NetInternalsMessageHandler::IOThreadImpl::AddEntryToQueue(Value* entry) { |
| +void NetInternalsMessageHandler::IOThreadImpl::AddEntryToQueue( |
| + Value* entry) { |
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| if (!pending_entries_.get()) { |
| pending_entries_.reset(new ListValue()); |