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

Unified Diff: content/browser/media/webrtc/webrtc_eventlog_host.h

Issue 2187243002: Changed raw pointer to WeakPtr to prevent use-after-free on destruction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | content/browser/media/webrtc/webrtc_eventlog_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/webrtc/webrtc_eventlog_host.h
diff --git a/content/browser/media/webrtc/webrtc_eventlog_host.h b/content/browser/media/webrtc/webrtc_eventlog_host.h
index 8c3377a7804c82a6c231b695bd5e8cbf0405e3e4..feaa34d6a00077e80ab8e5ed332bead84d02576b 100644
--- a/content/browser/media/webrtc/webrtc_eventlog_host.h
+++ b/content/browser/media/webrtc/webrtc_eventlog_host.h
@@ -40,6 +40,8 @@ class CONTENT_EXPORT WebRTCEventLogHost {
// PeerConnection was removed in the corresponding render process.
void PeerConnectionRemoved(int peer_connection_local_id);
+ base::WeakPtr<WebRTCEventLogHost> GetWeakPtr();
+
private:
// Actually start the eventlog for a single PeerConnection using the path
// stored in base_file_path_.
« no previous file with comments | « no previous file | content/browser/media/webrtc/webrtc_eventlog_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698