Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6587)

Unified Diff: chrome/browser/media/webrtc_logging_handler_host.h

Issue 1871533002: Change WebRTC log callback registration in browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review (olka) Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/webrtc_logging_handler_host.h
diff --git a/chrome/browser/media/webrtc_logging_handler_host.h b/chrome/browser/media/webrtc_logging_handler_host.h
index 446d93c546fffd209f4422829c3fdf345f896c45..f46d7a7d8154f2dc8e758bab4de150bd37a4bc24 100644
--- a/chrome/browser/media/webrtc_logging_handler_host.h
+++ b/chrome/browser/media/webrtc_logging_handler_host.h
@@ -86,7 +86,9 @@ class WebRtcLoggingHandlerHost : public content::BrowserMessageFilter {
typedef base::Callback<void(const std::string&, bool, bool)>
AudioDebugRecordingsCallback;
- WebRtcLoggingHandlerHost(Profile* profile, WebRtcLogUploader* log_uploader);
+ WebRtcLoggingHandlerHost(int render_process_id,
+ Profile* profile,
+ WebRtcLogUploader* log_uploader);
// Sets meta data that will be uploaded along with the log and also written
// in the beginning of the log. Must be called on the IO thread before calling
@@ -212,6 +214,9 @@ class WebRtcLoggingHandlerHost : public content::BrowserMessageFilter {
void LogInitialInfoOnIOThread(const net::NetworkInterfaceList& network_list,
const GenericDoneCallback& callback);
+ void EnableBrowserProcessLoggingOnUIThread();
+ void DisableBrowserProcessLoggingOnUIThread();
+
// Called after stopping RTP dumps.
void StoreLogContinue(const std::string& log_id,
const GenericDoneCallback& callback);
@@ -325,6 +330,9 @@ class WebRtcLoggingHandlerHost : public content::BrowserMessageFilter {
// This counter allows saving each debug recording in separate files.
uint64_t current_audio_debug_recordings_id_;
+ // The render process ID this object belongs to.
+ int render_process_id_;
+
DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingHandlerHost);
};
« no previous file with comments | « chrome/browser/media/webrtc_log_uploader_unittest.cc ('k') | chrome/browser/media/webrtc_logging_handler_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698