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