| Index: third_party/WebKit/Source/core/fetch/ResourceLoadingLog.h
|
| diff --git a/third_party/WebKit/Source/core/fetch/ResourceLoadingLog.h b/third_party/WebKit/Source/core/fetch/ResourceLoadingLog.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2b9219c1d6ca152db16830287a5342b394e2a6a4
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/fetch/ResourceLoadingLog.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 ResourceLoadingLog_h
|
| +#define ResourceLoadingLog_h
|
| +
|
| +#include "wtf/Assertions.h"
|
| +
|
| +#if DCHECK_IS_ON()
|
| +// We can see logs with |--v=N| or |--vmodule=ResourceLoadingLog=N| where N is a
|
| +// verbose level.
|
| +#define RESOURCE_LOADING_DVLOG(verbose_level) \
|
| + LAZY_STREAM(VLOG_STREAM(verbose_level), \
|
| + ((verbose_level) <= ::logging::GetVlogLevel("ResourceLoadingLog.h")))
|
| +#else
|
| +#define RESOURCE_LOADING_DVLOG(verbose_level) EAT_STREAM_PARAMETERS
|
| +#endif
|
| +
|
| +#endif // ResourceLoadingLog_h
|
|
|