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

Side by Side Diff: chrome/browser/net/chrome_net_log.h

Issue 1696005: Add net log entries that summarize transmit and receive byte counts. (Closed)
Patch Set: More tests and address 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/dom_ui/net_internals_ui.cc ('k') | chrome/browser/net/chrome_net_log.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_BROWSER_NET_CHROME_NET_LOG_H_ 5 #ifndef CHROME_BROWSER_NET_CHROME_NET_LOG_H_
6 #define CHROME_BROWSER_NET_CHROME_NET_LOG_H_ 6 #define CHROME_BROWSER_NET_CHROME_NET_LOG_H_
7 7
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "net/base/net_log.h" 9 #include "net/base/net_log.h"
10 10
(...skipping 23 matching lines...) Expand all
34 34
35 ChromeNetLog(); 35 ChromeNetLog();
36 ~ChromeNetLog(); 36 ~ChromeNetLog();
37 37
38 // NetLog implementation: 38 // NetLog implementation:
39 virtual void AddEntry(EventType type, 39 virtual void AddEntry(EventType type,
40 const base::TimeTicks& time, 40 const base::TimeTicks& time,
41 const Source& source, 41 const Source& source,
42 EventPhase phase, 42 EventPhase phase,
43 EventParameters* extra_parameters); 43 EventParameters* extra_parameters);
44 virtual int NextID(); 44 virtual uint32 NextID();
45 virtual bool HasListener() const; 45 virtual bool HasListener() const;
46 46
47 void AddObserver(Observer* observer); 47 void AddObserver(Observer* observer);
48 void RemoveObserver(Observer* observer); 48 void RemoveObserver(Observer* observer);
49 49
50 PassiveLogCollector* passive_collector() { 50 PassiveLogCollector* passive_collector() {
51 return passive_collector_.get(); 51 return passive_collector_.get();
52 } 52 }
53 53
54 private: 54 private:
55 int next_id_; 55 uint32 next_id_;
56 scoped_ptr<PassiveLogCollector> passive_collector_; 56 scoped_ptr<PassiveLogCollector> passive_collector_;
57 ObserverList<Observer, true> observers_; 57 ObserverList<Observer, true> observers_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(ChromeNetLog); 59 DISALLOW_COPY_AND_ASSIGN(ChromeNetLog);
60 }; 60 };
61 61
62 #endif // CHROME_BROWSER_NET_CHROME_NET_LOG_H_ 62 #endif // CHROME_BROWSER_NET_CHROME_NET_LOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/net_internals_ui.cc ('k') | chrome/browser/net/chrome_net_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698