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

Side by Side Diff: content/browser/media/webrtc_internals.h

Issue 617093003: Add MediaStreamSource frame rate calculation to the tracker. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding type name. Fixing IPC type problem. Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/media/webrtc_internals.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_MEDIA_WEBRTC_INTERNALS_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_
6 #define CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ 6 #define CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // |audio_constraints| is the constraints for the audio, |video_constraints| 73 // |audio_constraints| is the constraints for the audio, |video_constraints|
74 // is the constraints for the video. 74 // is the constraints for the video.
75 void OnGetUserMedia(int render_process_id, 75 void OnGetUserMedia(int render_process_id,
76 base::ProcessId pid, 76 base::ProcessId pid,
77 const std::string& origin, 77 const std::string& origin,
78 bool audio, 78 bool audio,
79 bool video, 79 bool video,
80 const std::string& audio_constraints, 80 const std::string& audio_constraints,
81 const std::string& video_constraints); 81 const std::string& video_constraints);
82 82
83 void OnAddVideoStats(base::ProcessId pid,
84 const std::string& video_id,
85 float input_frame_rate,
86 int number_of_dropped_frames);
87
83 // Methods for adding or removing WebRTCInternalsUIObserver. 88 // Methods for adding or removing WebRTCInternalsUIObserver.
84 void AddObserver(WebRTCInternalsUIObserver *observer); 89 void AddObserver(WebRTCInternalsUIObserver *observer);
85 void RemoveObserver(WebRTCInternalsUIObserver *observer); 90 void RemoveObserver(WebRTCInternalsUIObserver *observer);
86 91
87 // Sends all update data to |observer|. 92 // Sends all update data to |observer|.
88 void UpdateObserver(WebRTCInternalsUIObserver* observer); 93 void UpdateObserver(WebRTCInternalsUIObserver* observer);
89 94
90 // Enables or disables AEC dump (diagnostic echo canceller recording). 95 // Enables or disables AEC dump (diagnostic echo canceller recording).
91 void EnableAecDump(content::WebContents* web_contents); 96 void EnableAecDump(content::WebContents* web_contents);
92 void DisableAecDump(); 97 void DisableAecDump();
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 182
178 // While |peer_connection_data_| is non-empty, hold an instance of 183 // While |peer_connection_data_| is non-empty, hold an instance of
179 // PowerSaveBlocker. This prevents the application from being suspended while 184 // PowerSaveBlocker. This prevents the application from being suspended while
180 // remoting. 185 // remoting.
181 scoped_ptr<PowerSaveBlocker> power_save_blocker_; 186 scoped_ptr<PowerSaveBlocker> power_save_blocker_;
182 }; 187 };
183 188
184 } // namespace content 189 } // namespace content
185 190
186 #endif // CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ 191 #endif // CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/media/webrtc_internals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698