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

Unified Diff: net/log/write_to_file_net_log_observer.h

Issue 1059843002: Refactor NetLog::LogLevel --> NetLogCaptureMode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again to fix a merge conflict 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
« no previous file with comments | « net/log/trace_net_log_observer.cc ('k') | net/log/write_to_file_net_log_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/log/write_to_file_net_log_observer.h
diff --git a/net/log/write_to_file_net_log_observer.h b/net/log/write_to_file_net_log_observer.h
index bd147e3990c6086d38ea6ab1e0a813b1be45381a..8ef0115057b4d191c4735383df66b779a6d56c80 100644
--- a/net/log/write_to_file_net_log_observer.h
+++ b/net/log/write_to_file_net_log_observer.h
@@ -31,8 +31,8 @@ class NET_EXPORT WriteToFileNetLogObserver : public NetLog::ThreadSafeObserver {
WriteToFileNetLogObserver();
~WriteToFileNetLogObserver() 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 WriteToFileNetLogObserver : 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_;
« no previous file with comments | « net/log/trace_net_log_observer.cc ('k') | net/log/write_to_file_net_log_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698