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

Unified Diff: remoting/host/vlog_net_log.h

Issue 16137008: Refactor net::NetLog to provide implementation of observer pattern, not just the interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 7 years, 6 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 | « net/tools/get_server_time/get_server_time.cc ('k') | remoting/host/vlog_net_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/vlog_net_log.h
diff --git a/remoting/host/vlog_net_log.h b/remoting/host/vlog_net_log.h
index d056a3ad24c26a41cad763b6ae50916c4c033db0..393ab1c680492992028dbe5eb8023bab160f55a1 100644
--- a/remoting/host/vlog_net_log.h
+++ b/remoting/host/vlog_net_log.h
@@ -6,6 +6,7 @@
#define REMOTING_HOST_VLOG_NET_LOG_H_
#include "base/memory/scoped_handle.h"
+#include "base/memory/scoped_ptr.h"
#include "net/base/net_log.h"
namespace remoting {
@@ -19,18 +20,9 @@ class VlogNetLog : public net::NetLog {
VlogNetLog();
virtual ~VlogNetLog();
- // NetLog overrides:
- virtual void OnAddEntry(const NetLog::Entry& entry) OVERRIDE;
- virtual uint32 NextID() OVERRIDE;
- virtual LogLevel GetLogLevel() const OVERRIDE;
- virtual void AddThreadSafeObserver(ThreadSafeObserver* observer,
- LogLevel log_level) OVERRIDE;
- virtual void SetObserverLogLevel(ThreadSafeObserver* observer,
- LogLevel log_level) OVERRIDE;
- virtual void RemoveThreadSafeObserver(ThreadSafeObserver* observer) OVERRIDE;
-
private:
- uint32 id_;
+ class Observer;
+ scoped_ptr<Observer> observer_;
DISALLOW_COPY_AND_ASSIGN(VlogNetLog);
};
« no previous file with comments | « net/tools/get_server_time/get_server_time.cc ('k') | remoting/host/vlog_net_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698