| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 // Implementation class for DEVICE_LOG. | 22 // Implementation class for DEVICE_LOG. |
| 23 class DEVICE_EVENT_LOG_EXPORT DeviceEventLogImpl { | 23 class DEVICE_EVENT_LOG_EXPORT DeviceEventLogImpl { |
| 24 public: | 24 public: |
| 25 struct LogEntry { | 25 struct LogEntry { |
| 26 LogEntry(const char* filedesc, | 26 LogEntry(const char* filedesc, |
| 27 int file_line, | 27 int file_line, |
| 28 LogType log_type, | 28 LogType log_type, |
| 29 LogLevel log_level, | 29 LogLevel log_level, |
| 30 const std::string& event); | 30 const std::string& event); |
| 31 LogEntry(const LogEntry& other); |
| 31 | 32 |
| 32 std::string file; | 33 std::string file; |
| 33 int file_line; | 34 int file_line; |
| 34 LogType log_type; | 35 LogType log_type; |
| 35 LogLevel log_level; | 36 LogLevel log_level; |
| 36 std::string event; | 37 std::string event; |
| 37 base::Time time; | 38 base::Time time; |
| 38 int count; | 39 int count; |
| 39 }; | 40 }; |
| 40 | 41 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 size_t max_entries_; | 82 size_t max_entries_; |
| 82 LogEntryList entries_; | 83 LogEntryList entries_; |
| 83 base::WeakPtrFactory<DeviceEventLogImpl> weak_ptr_factory_; | 84 base::WeakPtrFactory<DeviceEventLogImpl> weak_ptr_factory_; |
| 84 | 85 |
| 85 DISALLOW_COPY_AND_ASSIGN(DeviceEventLogImpl); | 86 DISALLOW_COPY_AND_ASSIGN(DeviceEventLogImpl); |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace device_event_log | 89 } // namespace device_event_log |
| 89 | 90 |
| 90 #endif // COMPONENTS_DEVICE_EVENT_LOG_DEVICE_EVENT_LOG_IMPL_H_ | 91 #endif // COMPONENTS_DEVICE_EVENT_LOG_DEVICE_EVENT_LOG_IMPL_H_ |
| OLD | NEW |