Home | History | Annotate | Download | only in browser
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_EVENT_DETAILS_H_
      6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_EVENT_DETAILS_H_
      7 
      8 #include <string>
      9 
     10 #include "base/time/time.h"
     11 
     12 namespace translate {
     13 
     14 struct TranslateEventDetails {
     15   TranslateEventDetails(const std::string& in_filename,
     16                         int in_line,
     17                         const std::string& in_message);
     18 
     19   // The time when this event was created.
     20   base::Time time;
     21 
     22   // The source filename where this event was created.
     23   std::string filename;
     24 
     25   // The source line in |filename| where this event was created.
     26   int line;
     27 
     28   // The message to show in event logs.
     29   std::string message;
     30 };
     31 
     32 }  // namespace translate
     33 
     34 #endif  // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_EVENT_DETAILS_H_
     35