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

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

Issue 287383002: Implement getMediaDevices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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/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 11
12 namespace content { 12 namespace content {
13 13
14 // Helper enum used for histogramming calls to WebRTC APIs from JavaScript. 14 // Helper enum used for histogramming calls to WebRTC APIs from JavaScript.
15 enum JavaScriptAPIName { 15 enum JavaScriptAPIName {
16 WEBKIT_GET_USER_MEDIA, 16 WEBKIT_GET_USER_MEDIA,
17 WEBKIT_PEER_CONNECTION, 17 WEBKIT_PEER_CONNECTION,
18 WEBKIT_DEPRECATED_PEER_CONNECTION, 18 WEBKIT_DEPRECATED_PEER_CONNECTION,
19 WEBKIT_RTC_PEER_CONNECTION, 19 WEBKIT_RTC_PEER_CONNECTION,
20 WEBKIT_GET_MEDIA_DEVICES,
20 INVALID_NAME 21 INVALID_NAME
21 }; 22 };
22 23
23 // Helper method used to collect information about the number of times 24 // Helper method used to collect information about the number of times
24 // different WebRTC APIs are called from JavaScript. 25 // different WebRTC APIs are called from JavaScript.
25 // 26 //
26 // This contributes to two histograms; the former is a raw count of 27 // This contributes to two histograms; the former is a raw count of
27 // the number of times the APIs are called, and be viewed at 28 // the number of times the APIs are called, and be viewed at
28 // chrome://histograms/WebRTC.webkitApiCount. 29 // chrome://histograms/WebRTC.webkitApiCount.
29 // 30 //
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 74
74 int num_streams_; 75 int num_streams_;
75 bool has_used_api_[INVALID_NAME]; 76 bool has_used_api_[INVALID_NAME];
76 77
77 DISALLOW_COPY_AND_ASSIGN(PerSessionWebRTCAPIMetrics); 78 DISALLOW_COPY_AND_ASSIGN(PerSessionWebRTCAPIMetrics);
78 }; 79 };
79 80
80 } // namespace content 81 } // namespace content
81 82
82 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_UMA_HISTOGRAMS_H_ 83 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_UMA_HISTOGRAMS_H_
OLDNEW
« no previous file with comments | « content/renderer/media/mock_media_stream_dispatcher.cc ('k') | content/renderer/media/webrtc_uma_histograms_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698