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

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

Issue 446553002: Add histogram WebRTC.UserMediaRequest.NoResultState to track user media requests with no result. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@b399835
Patch Set: Diffbase https://codereview.chromium.org/427713004/ 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 #include "content/public/common/media_stream_request.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 void LogUserMediaRequestWithNoResult(bool request_cancelled,
16 bool stream_generated,
17 bool pending_sources);
18
15 void LogUserMediaRequestResult(MediaStreamRequestResult result); 19 void LogUserMediaRequestResult(MediaStreamRequestResult result);
16 20
17 // Helper enum used for histogramming calls to WebRTC APIs from JavaScript. 21 // Helper enum used for histogramming calls to WebRTC APIs from JavaScript.
18 enum JavaScriptAPIName { 22 enum JavaScriptAPIName {
19 WEBKIT_GET_USER_MEDIA, 23 WEBKIT_GET_USER_MEDIA,
20 WEBKIT_PEER_CONNECTION, 24 WEBKIT_PEER_CONNECTION,
21 WEBKIT_DEPRECATED_PEER_CONNECTION, 25 WEBKIT_DEPRECATED_PEER_CONNECTION,
22 WEBKIT_RTC_PEER_CONNECTION, 26 WEBKIT_RTC_PEER_CONNECTION,
23 WEBKIT_GET_MEDIA_DEVICES, 27 WEBKIT_GET_MEDIA_DEVICES,
24 INVALID_NAME 28 INVALID_NAME
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 81
78 int num_streams_; 82 int num_streams_;
79 bool has_used_api_[INVALID_NAME]; 83 bool has_used_api_[INVALID_NAME];
80 84
81 DISALLOW_COPY_AND_ASSIGN(PerSessionWebRTCAPIMetrics); 85 DISALLOW_COPY_AND_ASSIGN(PerSessionWebRTCAPIMetrics);
82 }; 86 };
83 87
84 } // namespace content 88 } // namespace content
85 89
86 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_UMA_HISTOGRAMS_H_ 90 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_UMA_HISTOGRAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698