summaryrefslogtreecommitdiffstats
path: root/chrome/browser/translate/translate_event_details.h
blob: 0b98b6db7ed667e594b21e114347d63b5f2c5bea (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
// Copyright 2013 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_TRANSLATE_TRANSLATE_EVENT_DETAILS_H_
#define CHROME_BROWSER_TRANSLATE_TRANSLATE_EVENT_DETAILS_H_

#include <string>

#include "base/time/time.h"

struct TranslateEventDetails {
  TranslateEventDetails(const std::string& in_filename,
                        int in_line,
                        const std::string& in_message);

  // The time when this event was created.
  base::Time time;

  // The source filename where this event was created.
  std::string filename;

  // The source line in |filename| where this event was created.
  int line;

  // The message to show in event logs.
  std::string message;
};

#endif  // CHROME_BROWSER_TRANSLATE_TRANSLATE_EVENT_DETAILS_H_