Refactor NetLog::LogLevel --> NetLogCaptureMode.

This is both a rename, and a functional change.

Before LogLevel was an enum, and consumers would compare its numeric value, or use it for serialization purposes. Whereas NetLogCaptureMode is a class that encapsulates the various capabilities for a logging level.

BUG=472710
[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]

Review URL: https://codereview.chromium.org/1059843002

Cr-Commit-Position: refs/heads/master@{#326440}
diff --git a/net/log/test_net_log.h b/net/log/test_net_log.h
index 174f715..1526d827 100644
--- a/net/log/test_net_log.h
+++ b/net/log/test_net_log.h
@@ -28,7 +28,7 @@
   TestNetLog();
   ~TestNetLog() override;
 
-  void SetLogLevel(LogLevel log_level);
+  void SetCaptureMode(NetLogCaptureMode capture_mode);
 
   // Below methods are forwarded to capturing_net_log_observer_.
   void GetEntries(CapturedEntryList* entry_list) const;
@@ -67,8 +67,8 @@
 
   void Clear();
 
-  // Sets the log level of the underlying TestNetLog.
-  void SetLogLevel(NetLog::LogLevel log_level);
+  // Sets the capture mode of the underlying TestNetLog.
+  void SetCaptureMode(NetLogCaptureMode capture_mode);
 
  private:
   TestNetLog capturing_net_log_;