diff options
author | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-12 00:25:12 +0000 |
---|---|---|
committer | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-12 00:25:12 +0000 |
commit | ec08bb23238e41b66daa676c3c55f23544a0de14 (patch) | |
tree | aef939a8d5cccb67d037d8d055380a82e95bbfaa /net/base/load_log.h | |
parent | db471b330fc82a9f450807ec1f4307c29dda23c4 (diff) | |
download | chromium_src-ec08bb23238e41b66daa676c3c55f23544a0de14.zip chromium_src-ec08bb23238e41b66daa676c3c55f23544a0de14.tar.gz chromium_src-ec08bb23238e41b66daa676c3c55f23544a0de14.tar.bz2 |
Add a "LoadLog" parameter to transactions, hostresolver, clientsocketpool and proyxservice.This dependency comes from the parent URLRequest, and is used as a container for per-request profiling data.This change is strictly a no-op refactor -- the parameter is unused, and LoadLog does nothing.BUG=http://crbug.com/14478TEST=none -- just needs to compile and pass existing tests.DESIGN=<http://docs.google.com/Doc?id=dfhcnb2v_21gbtrcpr3&hl=en>
Review URL: http://codereview.chromium.org/126303
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23127 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/load_log.h')
-rw-r--r-- | net/base/load_log.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net/base/load_log.h b/net/base/load_log.h new file mode 100644 index 0000000..0efe242 --- /dev/null +++ b/net/base/load_log.h @@ -0,0 +1,24 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef NET_BASE_LOAD_LOG_H_ +#define NET_BASE_LOAD_LOG_H_ + +#include "base/ref_counted.h" + +namespace net { + +// LoadLog stores profiling information on where time was spent while servicing +// a request (waiting in queues, resolving hosts, resolving proxy, etc...). +class LoadLog : public base::RefCounted<LoadLog> { + public: +// TODO(eroman): Add an API similar to: +// void TrackEnterState(LoadState state); +// void TrackLeaveState(LoadState state); +// void Merge(const LoadLog* other); +}; + +} // namespace net + +#endif // NET_BASE_LOAD_LOG_H_ |