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

Side by Side Diff: content/renderer/media/webrtc_uma_histograms.h

Issue 10703095: New PeerConnection handler in Chrome to support latest PeerConnection draft (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Readd the UMA histogram for Deprecated PeerConnection to not screw up the stats. Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_MEDIA_WEBRTC_UMA_HISTOGRAMS_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_UMA_HISTOGRAMS_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_UMA_HISTOGRAMS_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_UMA_HISTOGRAMS_H_
7 7
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 9
10 namespace { 10 namespace {
11 11
12 // Helper enum used for histogramming calls to WebRTC APIs from JavaScript. 12 // Helper enum used for histogramming calls to WebRTC APIs from JavaScript.
13 enum JavaScriptAPIName { 13 enum JavaScriptAPIName {
14 WEBKIT_GET_USER_MEDIA, 14 WEBKIT_GET_USER_MEDIA,
15 WEBKIT_PEER_CONNECTION, 15 WEBKIT_PEER_CONNECTION,
16 WEBKIT_DEPRECATED_PEER_CONNECTION,
17 WEBKIT_RTC_PEER_CONNECTION,
16 INVALID_NAME 18 INVALID_NAME
17 }; 19 };
18 20
19 // Helper method used to collect information about the number of times 21 // Helper method used to collect information about the number of times
20 // different WebRTC API:s are called from JavaScript. 22 // different WebRTC API:s are called from JavaScript.
21 // The histogram can be viewed at chrome://histograms/WebRTC.webkitApiCount. 23 // The histogram can be viewed at chrome://histograms/WebRTC.webkitApiCount.
22 void UpdateWebRTCMethodCount(JavaScriptAPIName api_name) { 24 void UpdateWebRTCMethodCount(JavaScriptAPIName api_name) {
23 UMA_HISTOGRAM_ENUMERATION("WebRTC.webkitApiCount", api_name, INVALID_NAME); 25 UMA_HISTOGRAM_ENUMERATION("WebRTC.webkitApiCount", api_name, INVALID_NAME);
24 } 26 }
25 27
26 } // namespace 28 } // namespace
27 29
28 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_UMA_HISTOGRAMS_H_ 30 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_UMA_HISTOGRAMS_H_
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_peer_connection_handler_unittest.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698