Chromium Code Reviews| Index: chrome/browser/net/net_log_logger.h |
| =================================================================== |
| --- chrome/browser/net/net_log_logger.h (revision 175049) |
| +++ chrome/browser/net/net_log_logger.h (working copy) |
| @@ -32,12 +32,19 @@ |
| // Separate from constructor to enforce thread safety. |
| void StartObserving(net::NetLog* net_log); |
| + // Stops observing |net_log_|. Must already be watching |net_log_|. |
| + void StopObserving(); |
| + |
| // net::NetLog::ThreadSafeObserver implementation: |
| virtual void OnAddEntry(const net::NetLog::Entry& entry) OVERRIDE; |
| private: |
| ScopedStdioHandle file_; |
| + // NetLog that is being observed. Weak ptr, owned by the caller of |
| + // |StartObserving|. |StopObserving| stops observing of |net_log_|. |
| + net::NetLog* net_log_; |
|
mmenke
2013/01/04 16:22:09
This isn't needed. NetLog::ThreadSafeObserver has
|
| + |
| DISALLOW_COPY_AND_ASSIGN(NetLogLogger); |
| }; |