diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-01 21:23:00 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-01 21:23:00 +0000 |
commit | 763f848ffbd28b22a6c2aa32bf28184d9c17b366 (patch) | |
tree | c6e662f3b95f1b52866c840a96d8ce02a75032cd /net/base/capturing_net_log.cc | |
parent | 314feb0bc9a98d6ea9cfb576485bf82dd07ffe84 (diff) | |
download | chromium_src-763f848ffbd28b22a6c2aa32bf28184d9c17b366.zip chromium_src-763f848ffbd28b22a6c2aa32bf28184d9c17b366.tar.gz chromium_src-763f848ffbd28b22a6c2aa32bf28184d9c17b366.tar.bz2 |
FBTF: Another big ctor/dtor cleanup found by automated tools.
(Shaves ~2MB off Linux Debug .a files)
BUG=none
TEST=compiles
Review URL: http://codereview.chromium.org/3563004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/capturing_net_log.cc')
-rw-r--r-- | net/base/capturing_net_log.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net/base/capturing_net_log.cc b/net/base/capturing_net_log.cc index 08f3b8d..c488e06 100644 --- a/net/base/capturing_net_log.cc +++ b/net/base/capturing_net_log.cc @@ -6,10 +6,23 @@ namespace net { +CapturingNetLog::Entry::Entry(EventType type, + const base::TimeTicks& time, + Source source, + EventPhase phase, + EventParameters* extra_parameters) + : type(type), time(time), source(source), phase(phase), + extra_parameters(extra_parameters) { +} + +CapturingNetLog::Entry::~Entry() {} + CapturingNetLog::CapturingNetLog(size_t max_num_entries) : next_id_(0), max_num_entries_(max_num_entries) { } +CapturingNetLog::~CapturingNetLog() {} + void CapturingNetLog::AddEntry(EventType type, const base::TimeTicks& time, const Source& source, @@ -28,6 +41,16 @@ void CapturingNetLog::Clear() { entries_.clear(); } +CapturingBoundNetLog::CapturingBoundNetLog(const NetLog::Source& source, + CapturingNetLog* net_log) + : source_(source), capturing_net_log_(net_log) { +} + +CapturingBoundNetLog::CapturingBoundNetLog(size_t max_num_entries) + : capturing_net_log_(new CapturingNetLog(max_num_entries)) {} + +CapturingBoundNetLog::~CapturingBoundNetLog() {} + void CapturingBoundNetLog::Clear() { capturing_net_log_->Clear(); } |