1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
content / public / browser / webrtc_log.cc [blame]
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/public/browser/webrtc_log.h"
#include "content/browser/renderer_host/media/media_stream_manager.h"
#include "content/public/browser/browser_thread.h"
namespace content {
// static
void WebRtcLog::SetLogMessageCallback(
int render_process_id,
base::RepeatingCallback<void(const std::string&)> callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
MediaStreamManager::RegisterNativeLogCallback(render_process_id,
std::move(callback));
}
// static
void WebRtcLog::ClearLogMessageCallback(int render_process_id) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
MediaStreamManager::UnregisterNativeLogCallback(render_process_id);
}
} // namespace content