| 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_DEVICE_EVENT_LOG_DEVICE_EVENT_LOG_IMPL_H_ | 5 #ifndef COMPONENTS_DEVICE_EVENT_LOG_DEVICE_EVENT_LOG_IMPL_H_ |
| 6 #define COMPONENTS_DEVICE_EVENT_LOG_DEVICE_EVENT_LOG_IMPL_H_ | 6 #define COMPONENTS_DEVICE_EVENT_LOG_DEVICE_EVENT_LOG_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "components/device_event_log/device_event_log.h" | 12 #include "components/device_event_log/device_event_log.h" |
| 13 #include "components/device_event_log/device_event_log_export.h" | |
| 14 | 13 |
| 15 namespace device_event_log { | 14 namespace device_event_log { |
| 16 | 15 |
| 17 class DEVICE_EVENT_LOG_EXPORT DeviceEventLogImpl { | 16 class DeviceEventLogImpl { |
| 18 public: | 17 public: |
| 19 struct LogEntry { | 18 struct LogEntry { |
| 20 LogEntry(const char* filedesc, | 19 LogEntry(const char* filedesc, |
| 21 int file_line, | 20 int file_line, |
| 22 LogType log_type, | 21 LogType log_type, |
| 23 LogLevel log_level, | 22 LogLevel log_level, |
| 24 const std::string& event); | 23 const std::string& event); |
| 25 | 24 |
| 26 std::string file; | 25 std::string file; |
| 27 int file_line; | 26 int file_line; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 69 |
| 71 size_t max_entries_; | 70 size_t max_entries_; |
| 72 LogEntryList entries_; | 71 LogEntryList entries_; |
| 73 | 72 |
| 74 DISALLOW_COPY_AND_ASSIGN(DeviceEventLogImpl); | 73 DISALLOW_COPY_AND_ASSIGN(DeviceEventLogImpl); |
| 75 }; | 74 }; |
| 76 | 75 |
| 77 } // namespace device_event_log | 76 } // namespace device_event_log |
| 78 | 77 |
| 79 #endif // COMPONENTS_DEVICE_EVENT_LOG_DEVICE_EVENT_LOG_IMPL_H_ | 78 #endif // COMPONENTS_DEVICE_EVENT_LOG_DEVICE_EVENT_LOG_IMPL_H_ |
| OLD | NEW |