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

Unified Diff: third_party/WebKit/Source/platform/network/NetworkLog.h

Issue 2240053002: Replace WTF_LOG() with NETWORK_DVLOG() or RESOURCE_LOADING_DVLOG(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sstream, EXPECT_STREQ Created 4 years, 4 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: third_party/WebKit/Source/platform/network/NetworkLog.h
diff --git a/third_party/WebKit/Source/platform/network/NetworkLog.h b/third_party/WebKit/Source/platform/network/NetworkLog.h
new file mode 100644
index 0000000000000000000000000000000000000000..3b786c07105a646bbe1227821df93b251de357cd
--- /dev/null
+++ b/third_party/WebKit/Source/platform/network/NetworkLog.h
@@ -0,0 +1,20 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NetworkLog_h
+#define NetworkLog_h
+
+#include "wtf/Assertions.h"
+
+#if DCHECK_IS_ON()
+// We can see logs with |--v=N| or |--vmodule=NetworkLog=N| where N is a
+// verbose level.
+#define NETWORK_DVLOG(verbose_level) \
+ LAZY_STREAM(VLOG_STREAM(verbose_level), \
+ ((verbose_level) <= ::logging::GetVlogLevel("NetworkLog.h")))
+#else
+#define NETWORK_DVLOG(verbose_level) EAT_STREAM_PARAMETERS
+#endif
+
+#endif // NetworkLog_h

Powered by Google App Engine
This is Rietveld 408576698