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

Unified Diff: chrome/browser/net/chrome_net_log.cc

Issue 1556018: Add support for attaching custom parameters to NetLog events. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Address willchan's comments Created 10 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/net/chrome_net_log.h ('k') | chrome/browser/net/passive_log_collector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_net_log.cc
===================================================================
--- chrome/browser/net/chrome_net_log.cc (revision 44049)
+++ chrome/browser/net/chrome_net_log.cc (working copy)
@@ -23,11 +23,16 @@
RemoveObserver(passive_collector_.get());
}
-void ChromeNetLog::AddEntry(const Entry& entry) {
+void ChromeNetLog::AddEntry(EventType type,
+ const base::TimeTicks& time,
+ const Source& source,
+ EventPhase phase,
+ EventParameters* extra_parameters) {
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
// Notify all of the log observers.
- FOR_EACH_OBSERVER(Observer, observers_, OnAddEntry(entry));
+ FOR_EACH_OBSERVER(Observer, observers_,
+ OnAddEntry(type, time, source, phase, extra_parameters));
}
int ChromeNetLog::NextID() {
« no previous file with comments | « chrome/browser/net/chrome_net_log.h ('k') | chrome/browser/net/passive_log_collector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698