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

Unified Diff: chrome/browser/net/net_log_logger.h

Issue 11635023: First cut at UI for saving net_logs data into a temporary file on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 12 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
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);
};

Powered by Google App Engine
This is Rietveld 408576698