summaryrefslogtreecommitdiffstats
path: root/chrome/browser/metrics/metric_event_duration_details.h
blob: 3e2feec7a06e7bb5877eb9aace0aa2a26743c3d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) 2009 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 CHROME_BROWSER_METRICS_METRIC_EVENT_DURATION_DETAILS_H_
#define CHROME_BROWSER_METRICS_METRIC_EVENT_DURATION_DETAILS_H_

#include <string>

// Used when sending a notification about an event that occurred that we want
// to time.
struct MetricEventDurationDetails {
  MetricEventDurationDetails(const std::string& e, int d)
      : event_name(e), duration_ms(d) {}

  std::string event_name;
  int duration_ms;
};

#endif  // CHROME_BROWSER_METRICS_METRIC_EVENT_DURATION_DETAILS_H_