summaryrefslogtreecommitdiff
path: root/chromium/content/browser/sms/sms_metrics.h
blob: be9d4e1628ba81f1866a62e85e5d9062f13a310f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_BROWSER_SMS_SMS_METRICS_H_
#define CONTENT_BROWSER_SMS_SMS_METRICS_H_

#include "third_party/blink/public/common/sms/sms_receiver_destroyed_reason.h"

namespace base {
class TimeDelta;
}

namespace content {

// Records the time from when a call to the API was made to when an SMS has been
// successfully received.
void RecordSmsReceiveTime(base::TimeDelta duration);

// Records the time from when a successful SMS was retrieved to when the user
// presses the Cancel button.
void RecordCancelOnSuccessTime(base::TimeDelta duration);

// Records the time from when a successful SMS was retrieved to when the user
// presses the Continue button.
void RecordContinueOnSuccessTime(base::TimeDelta duration);

void RecordDestroyedReason(blink::SmsReceiverDestroyedReason reason);

}  // namespace content

#endif  // CONTENT_BROWSER_SMS_SMS_METRICS_H_