summaryrefslogtreecommitdiffstats
path: root/net/base/net_log.cc
diff options
context:
space:
mode:
authordpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-26 23:09:27 +0000
committerdpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-26 23:09:27 +0000
commite07dc0e46f2904120798341acc3225cf396f2ec4 (patch)
tree914702949651664c1df1b0ef958e5fad3dd3aebc /net/base/net_log.cc
parentcaf41afeb2542ce803f3faa61287f3681b78837a (diff)
downloadchromium_src-e07dc0e46f2904120798341acc3225cf396f2ec4.zip
chromium_src-e07dc0e46f2904120798341acc3225cf396f2ec4.tar.gz
chromium_src-e07dc0e46f2904120798341acc3225cf396f2ec4.tar.bz2
Remove ChromeNetLog dependency from content/browser/debugger.
Add Observer concept to net::NetLog. Use net::NetLog::Observer in ChromeNetLog. Remove ChromeNetLog dependency in content/browser/debugger. Forked from http://codereview.chromium.org/7310029/ to finish Jói's patch. BUG=84078 TEST=existing Review URL: http://codereview.chromium.org/7468019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94196 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_log.cc')
-rw-r--r--net/base/net_log.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/base/net_log.cc b/net/base/net_log.cc
index 110c8a4..6509801 100644
--- a/net/base/net_log.cc
+++ b/net/base/net_log.cc
@@ -56,6 +56,17 @@ Value* NetLog::Source::ToValue() const {
return dict;
}
+NetLog::ThreadSafeObserver::ThreadSafeObserver(LogLevel log_level)
+ : log_level_(log_level) {
+}
+
+NetLog::ThreadSafeObserver::~ThreadSafeObserver() {
+}
+
+NetLog::LogLevel NetLog::ThreadSafeObserver::log_level() const {
+ return log_level_;
+}
+
// static
std::string NetLog::TickCountToString(const base::TimeTicks& time) {
int64 delta_time = (time - base::TimeTicks()).InMilliseconds();