Chromium Code Reviews| Index: third_party/WebKit/Source/modules/webdatabase/StorageLog.h |
| diff --git a/third_party/WebKit/Source/modules/webdatabase/StorageLog.h b/third_party/WebKit/Source/modules/webdatabase/StorageLog.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..35f91bc71f9de61f88cd26104ebab7dcf18e3612 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/modules/webdatabase/StorageLog.h |
| @@ -0,0 +1,18 @@ |
| +// 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 StorageLog_h |
| +#define StorageLog_h |
| + |
| +#include "wtf/Assertions.h" |
| + |
| +#if DCHECK_IS_ON() |
| +// We can see logs with |--v=N| or |--vmodule=StorageLog=N| where N is a |
| +// verbose level. |
| +#define STORAGE_DVLOG(verbose_level) !((verbose_level) <= ::logging::GetVlogLevel("StorageLog.h")) ? (void) 0 : ::logging::LogMessageVoidify() & VLOG_STREAM(verbose_level) |
|
michaeln
2016/08/11 00:19:35
I'm not so familiar with these logging macros but
tkent
2016/08/11 22:59:41
You're right. We can use LAZY_STREAM. We just nee
|
| +#else |
| +#define STORAGE_DVLOG(verbose_level) EAT_STREAM_PARAMETERS |
| +#endif |
| + |
| +#endif // StorageLog_h |