blob: cb324df8cb214b149b37e9578dcc853bbf0333c3 [file] [log] [blame]
// Copyright 2013 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.
#include <string>
#include "content/common/content_export.h"
namespace content {
// This interface is implemented by a handler in the embedder and used for
// initializing the logging and passing log messages to the handler. The
// purpose is to forward mainly libjingle log messages to embedder (besides
// the ordinary logging stream) that will be used for diagnostic purposes.
class WebRtcLogMessageDelegate {
// Pass a diagnostic WebRTC log message.
virtual void LogMessage(const std::string& message) = 0;
virtual ~WebRtcLogMessageDelegate() {}
// Must be called on IO thread.
CONTENT_EXPORT void InitWebRtcLoggingDelegate(
WebRtcLogMessageDelegate* delegate);
// Must be called on IO thread.
CONTENT_EXPORT void InitWebRtcLogging();
} // namespace content