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