Chromium Code Reviews| Index: content/browser/renderer_host/media/peer_connection_tracker_host.h |
| diff --git a/content/browser/renderer_host/media/peer_connection_tracker_host.h b/content/browser/renderer_host/media/peer_connection_tracker_host.h |
| index 949010addeec58b80c8863bd16805adeeebd5054..a60079be2205a551ae61af8ff0bdd21e75f8c732 100644 |
| --- a/content/browser/renderer_host/media/peer_connection_tracker_host.h |
| +++ b/content/browser/renderer_host/media/peer_connection_tracker_host.h |
| @@ -9,9 +9,11 @@ |
| #include "base/macros.h" |
| #include "base/power_monitor/power_observer.h" |
| +#include "base/synchronization/lock.h" |
| #include "content/public/browser/browser_message_filter.h" |
| struct PeerConnectionInfo; |
| +struct VideoInfo; |
| namespace base { |
| class ListValue; |
| @@ -54,13 +56,16 @@ class PeerConnectionTrackerHost : public BrowserMessageFilter, |
| void OnAddStats(int lid, const base::ListValue& value); |
| void OnGetUserMedia(const std::string& origin, |
| bool audio, |
| - bool video, |
| + const VideoInfo& video_info, |
| const std::string& audio_constraints, |
| const std::string& video_constraints); |
| void SendOnSuspendOnUIThread(); |
| + bool IsScreenCapture(const std::string& video_constraints); |
| int render_process_id_; |
| + bool is_screen_capture_; |
| + base::Lock lock_; |
|
Sergey Ulanov
2016/08/19 05:54:15
Add a comment to explain why this lock is necessar
braveyao
2016/08/23 21:18:55
Done.
|
| base::WeakPtr<WebRTCEventLogHost> event_log_host_; |
| DISALLOW_COPY_AND_ASSIGN(PeerConnectionTrackerHost); |