OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_TRANSLATE_TRANSLATE_EVENT_DETAILS_H_ | 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_EVENT_DETAILS_H_ |
6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_EVENT_DETAILS_H_ | 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_EVENT_DETAILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 | 11 |
12 struct TranslateEventDetails { | 12 struct TranslateEventDetails { |
13 TranslateEventDetails(const std::string& in_filename, | 13 TranslateEventDetails(const std::string& in_filename, |
14 int in_line, | 14 int in_line, |
15 const std::string& in_message); | 15 const std::string& in_message); |
16 | 16 |
17 // The time when this event was created. | 17 // The time when this event was created. |
18 base::Time time; | 18 base::Time time; |
19 | 19 |
20 // The source filename where this event was created. | 20 // The source filename where this event was created. |
21 std::string filename; | 21 std::string filename; |
22 | 22 |
23 // The source line in |filename| where this event was created. | 23 // The source line in |filename| where this event was created. |
24 int line; | 24 int line; |
25 | 25 |
26 // The message to show in event logs. | 26 // The message to show in event logs. |
27 std::string message; | 27 std::string message; |
28 }; | 28 }; |
29 | 29 |
30 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_EVENT_DETAILS_H_ | 30 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_EVENT_DETAILS_H_ |
OLD | NEW |