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

Unified Diff: net/log/net_log_logger.h

Issue 1059843002: Refactor NetLog::LogLevel --> NetLogCaptureMode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header for std::max Created 5 years, 8 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: net/log/net_log_logger.h
diff --git a/net/log/net_log_logger.h b/net/log/net_log_logger.h
index 111d8ddd60a120c583c6a49ef27a1d6322f1b06c..28c4b69f6974f08ff4214d424979961d3f9fdf8e 100644
--- a/net/log/net_log_logger.h
+++ b/net/log/net_log_logger.h
@@ -31,8 +31,8 @@ class NET_EXPORT NetLogLogger : public NetLog::ThreadSafeObserver {
NetLogLogger();
~NetLogLogger() override;
- // Sets the log level to log at. Must be called before StartObserving.
- void set_log_level(NetLog::LogLevel log_level);
+ // Sets the capture mode to log at. Must be called before StartObserving.
+ void set_capture_mode(NetLogCaptureMode capture_mode);
// Starts observing |net_log| and writes output to |file|. Must not already
// be watching a NetLog. Separate from constructor to enforce thread safety.
@@ -65,8 +65,8 @@ class NET_EXPORT NetLogLogger : public NetLog::ThreadSafeObserver {
private:
base::ScopedFILE file_;
- // The LogLevel to log at.
- NetLog::LogLevel log_level_;
+ // The capture mode to log at.
+ NetLogCaptureMode capture_mode_;
// True if OnAddEntry() has been called at least once.
bool added_events_;

Powered by Google App Engine
This is Rietveld 408576698