OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_PEER_CONNECTION_TRACKER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_PEER_CONNECTION_TRACKER_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_PEER_CONNECTION_TRACKER_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_PEER_CONNECTION_TRACKER_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/power_monitor/power_observer.h" | 11 #include "base/power_monitor/power_observer.h" |
12 #include "content/public/browser/browser_message_filter.h" | 12 #include "content/public/browser/browser_message_filter.h" |
13 | 13 |
14 struct PeerConnectionInfo; | 14 struct PeerConnectionInfo; |
| 15 struct VideoInfo; |
15 | 16 |
16 namespace base { | 17 namespace base { |
17 class ListValue; | 18 class ListValue; |
18 } // namespace base | 19 } // namespace base |
19 | 20 |
20 namespace content { | 21 namespace content { |
21 | 22 |
22 class WebRTCEventLogHost; | 23 class WebRTCEventLogHost; |
23 | 24 |
24 // This class is the host for PeerConnectionTracker in the browser process | 25 // This class is the host for PeerConnectionTracker in the browser process |
(...skipping 21 matching lines...) Expand all Loading... |
46 | 47 |
47 private: | 48 private: |
48 // Handlers for peer connection messages coming from the renderer. | 49 // Handlers for peer connection messages coming from the renderer. |
49 void OnAddPeerConnection(const PeerConnectionInfo& info); | 50 void OnAddPeerConnection(const PeerConnectionInfo& info); |
50 void OnRemovePeerConnection(int lid); | 51 void OnRemovePeerConnection(int lid); |
51 void OnUpdatePeerConnection( | 52 void OnUpdatePeerConnection( |
52 int lid, const std::string& type, const std::string& value); | 53 int lid, const std::string& type, const std::string& value); |
53 void OnAddStats(int lid, const base::ListValue& value); | 54 void OnAddStats(int lid, const base::ListValue& value); |
54 void OnGetUserMedia(const std::string& origin, | 55 void OnGetUserMedia(const std::string& origin, |
55 bool audio, | 56 bool audio, |
56 bool video, | 57 const VideoInfo& video_info, |
57 const std::string& audio_constraints, | 58 const std::string& audio_constraints, |
58 const std::string& video_constraints); | 59 const std::string& video_constraints); |
59 void SendOnSuspendOnUIThread(); | 60 void SendOnSuspendOnUIThread(); |
| 61 bool IsScreenCapture(const std::string& video_constraints); |
60 | 62 |
61 int render_process_id_; | 63 int render_process_id_; |
| 64 bool is_screen_capture_; |
62 | 65 |
63 WebRTCEventLogHost* const event_log_host_; | 66 WebRTCEventLogHost* const event_log_host_; |
64 | 67 |
65 DISALLOW_COPY_AND_ASSIGN(PeerConnectionTrackerHost); | 68 DISALLOW_COPY_AND_ASSIGN(PeerConnectionTrackerHost); |
66 }; | 69 }; |
67 | 70 |
68 } // namespace content | 71 } // namespace content |
69 | 72 |
70 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_PEER_CONNECTION_TRACKER_HOST_H_ | 73 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_PEER_CONNECTION_TRACKER_HOST_H_ |
OLD | NEW |