| 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 CHROMEOS_DEVICE_EVENT_LOG_IMPL_H_ | 5 #ifndef COMPONENTS_DEVICE_EVENT_LOG_DEVICE_EVENT_LOG_IMPL_H_ |
| 6 #define CHROMEOS_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 "chromeos/chromeos_export.h" | 12 #include "components/device_event_log/device_event_log.h" |
| 13 #include "chromeos/device_event_log.h" | 13 #include "components/device_event_log/device_event_log_export.h" |
| 14 | |
| 15 namespace chromeos { | |
| 16 | 14 |
| 17 namespace device_event_log { | 15 namespace device_event_log { |
| 18 | 16 |
| 19 class CHROMEOS_EXPORT DeviceEventLogImpl { | 17 class DEVICE_EVENT_LOG_EXPORT DeviceEventLogImpl { |
| 20 public: | 18 public: |
| 21 struct LogEntry { | 19 struct LogEntry { |
| 22 LogEntry(const char* filedesc, | 20 LogEntry(const char* filedesc, |
| 23 int file_line, | 21 int file_line, |
| 24 LogType log_type, | 22 LogType log_type, |
| 25 LogLevel log_level, | 23 LogLevel log_level, |
| 26 const std::string& event); | 24 const std::string& event); |
| 27 | 25 |
| 28 std::string file; | 26 std::string file; |
| 29 int file_line; | 27 int file_line; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 void set_max_entries_for_test(size_t entries) { max_entries_ = entries; } | 69 void set_max_entries_for_test(size_t entries) { max_entries_ = entries; } |
| 72 | 70 |
| 73 size_t max_entries_; | 71 size_t max_entries_; |
| 74 LogEntryList entries_; | 72 LogEntryList entries_; |
| 75 | 73 |
| 76 DISALLOW_COPY_AND_ASSIGN(DeviceEventLogImpl); | 74 DISALLOW_COPY_AND_ASSIGN(DeviceEventLogImpl); |
| 77 }; | 75 }; |
| 78 | 76 |
| 79 } // namespace device_event_log | 77 } // namespace device_event_log |
| 80 | 78 |
| 81 } // namespace chromeos | 79 #endif // COMPONENTS_DEVICE_EVENT_LOG_DEVICE_EVENT_LOG_IMPL_H_ |
| 82 | |
| 83 #endif // CHROMEOS_DEVICE_EVENT_LOG_IMPL_H_ | |
| OLD | NEW |