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

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

Issue 427713004: Add histogram WebRTC.UserMediaRequest.Events to allow to track getUserMedia failures and hangs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaner histogram description. Created 6 years, 4 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
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/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/threading/non_thread_safe.h" 9 #include "base/threading/non_thread_safe.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/public/common/media_stream_request.h"
11 12
12 namespace content { 13 namespace content {
13 14
15 void LogUserMediaRequestResult(MediaStreamRequestResult result);
16
14 // Helper enum used for histogramming calls to WebRTC APIs from JavaScript. 17 // Helper enum used for histogramming calls to WebRTC APIs from JavaScript.
15 enum JavaScriptAPIName { 18 enum JavaScriptAPIName {
16 WEBKIT_GET_USER_MEDIA, 19 WEBKIT_GET_USER_MEDIA,
17 WEBKIT_PEER_CONNECTION, 20 WEBKIT_PEER_CONNECTION,
18 WEBKIT_DEPRECATED_PEER_CONNECTION, 21 WEBKIT_DEPRECATED_PEER_CONNECTION,
19 WEBKIT_RTC_PEER_CONNECTION, 22 WEBKIT_RTC_PEER_CONNECTION,
20 WEBKIT_GET_MEDIA_DEVICES, 23 WEBKIT_GET_MEDIA_DEVICES,
21 INVALID_NAME 24 INVALID_NAME
22 }; 25 };
23 26
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 77
75 int num_streams_; 78 int num_streams_;
76 bool has_used_api_[INVALID_NAME]; 79 bool has_used_api_[INVALID_NAME];
77 80
78 DISALLOW_COPY_AND_ASSIGN(PerSessionWebRTCAPIMetrics); 81 DISALLOW_COPY_AND_ASSIGN(PerSessionWebRTCAPIMetrics);
79 }; 82 };
80 83
81 } // namespace content 84 } // namespace content
82 85
83 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_UMA_HISTOGRAMS_H_ 86 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_UMA_HISTOGRAMS_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_impl.cc ('k') | content/renderer/media/webrtc_uma_histograms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698