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

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceLoadingLog.h

Issue 2656053002: NullStream
Patch Set: . Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ResourceLoadingLog_h 5 #ifndef ResourceLoadingLog_h
6 #define ResourceLoadingLog_h 6 #define ResourceLoadingLog_h
7 7
8 #include "wtf/Assertions.h" 8 #include "wtf/Assertions.h"
9 9
10 #if DCHECK_IS_ON() 10 #if DCHECK_IS_ON()
11 // We can see logs with |--v=N| or |--vmodule=ResourceLoadingLog=N| where N is a 11 // We can see logs with |--v=N| or |--vmodule=ResourceLoadingLog=N| where N is a
12 // verbose level. 12 // verbose level.
13 #define RESOURCE_LOADING_DVLOG(verbose_level) \ 13 #define RESOURCE_LOADING_DVLOG(verbose_level) \
14 LAZY_STREAM( \ 14 LAZY_STREAM( \
15 VLOG_STREAM(verbose_level), \ 15 VLOG_STREAM(verbose_level), \
16 ((verbose_level) <= ::logging::GetVlogLevel("ResourceLoadingLog.h"))) 16 ((verbose_level) <= ::logging::GetVlogLevel("ResourceLoadingLog.h")))
17 #else 17 #else
18 #define RESOURCE_LOADING_DVLOG(verbose_level) EAT_STREAM_PARAMETERS 18 #define RESOURCE_LOADING_DVLOG(verbose_level) ::logging::NullStream().stream()
19 #endif 19 #endif
20 20
21 #endif // ResourceLoadingLog_h 21 #endif // ResourceLoadingLog_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webdatabase/sqlite/SQLLog.h ('k') | third_party/WebKit/Source/platform/network/NetworkLog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698