1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_UMA_TYPES_H_
6#define CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_UMA_TYPES_H_
7
8namespace content {
9
10// This enum must be kept in-sync with DesktopCaptureCounters defined in
11// histograms.xml. New fields should be added right before
12// DESKTOP_CAPTURE_COUNTER_BOUNDARY.
13enum DesktopCaptureCounters {
14  SCREEN_CAPTURER_CREATED,
15  WINDOW_CAPTURER_CREATED,
16  FIRST_SCREEN_CAPTURE_SUCCEEDED,
17  FIRST_SCREEN_CAPTURE_FAILED,
18  FIRST_WINDOW_CAPTURE_SUCCEEDED,
19  FIRST_WINDOW_CAPTURE_FAILED,
20  DESKTOP_CAPTURE_COUNTER_BOUNDARY
21};
22
23extern const char kUmaScreenCaptureTime[];
24extern const char kUmaWindowCaptureTime[];
25
26void IncrementDesktopCaptureCounter(DesktopCaptureCounters counter);
27
28}  // namespace content
29
30#endif  // CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_UMA_TYPES_H_
31