OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |