| 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> |
| 9 |
| 8 #include <list> | 10 #include <list> |
| 9 #include <string> | 11 #include <string> |
| 10 | 12 |
| 13 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 13 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
| 14 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 15 #include "components/device_event_log/device_event_log.h" | 18 #include "components/device_event_log/device_event_log.h" |
| 16 | 19 |
| 17 namespace device_event_log { | 20 namespace device_event_log { |
| 18 | 21 |
| 19 // Implementation class for DEVICE_LOG. | 22 // Implementation class for DEVICE_LOG. |
| 20 class DEVICE_EVENT_LOG_EXPORT DeviceEventLogImpl { | 23 class DEVICE_EVENT_LOG_EXPORT DeviceEventLogImpl { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 size_t max_entries_; | 81 size_t max_entries_; |
| 79 LogEntryList entries_; | 82 LogEntryList entries_; |
| 80 base::WeakPtrFactory<DeviceEventLogImpl> weak_ptr_factory_; | 83 base::WeakPtrFactory<DeviceEventLogImpl> weak_ptr_factory_; |
| 81 | 84 |
| 82 DISALLOW_COPY_AND_ASSIGN(DeviceEventLogImpl); | 85 DISALLOW_COPY_AND_ASSIGN(DeviceEventLogImpl); |
| 83 }; | 86 }; |
| 84 | 87 |
| 85 } // namespace device_event_log | 88 } // namespace device_event_log |
| 86 | 89 |
| 87 #endif // COMPONENTS_DEVICE_EVENT_LOG_DEVICE_EVENT_LOG_IMPL_H_ | 90 #endif // COMPONENTS_DEVICE_EVENT_LOG_DEVICE_EVENT_LOG_IMPL_H_ |
| OLD | NEW |