| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_DRIVE_EVENT_LOGGER_H_ | 5 #ifndef COMPONENTS_DRIVE_EVENT_LOGGER_H_ |
| 6 #define CHROME_BROWSER_DRIVE_EVENT_LOGGER_H_ | 6 #define COMPONENTS_DRIVE_EVENT_LOGGER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
| 16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 std::deque<Event> history_; // guarded by lock_. | 59 std::deque<Event> history_; // guarded by lock_. |
| 60 size_t history_size_; // guarded by lock_. | 60 size_t history_size_; // guarded by lock_. |
| 61 int next_event_id_; // guarded by lock_. | 61 int next_event_id_; // guarded by lock_. |
| 62 base::Lock lock_; | 62 base::Lock lock_; |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(EventLogger); | 64 DISALLOW_COPY_AND_ASSIGN(EventLogger); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace drive | 67 } // namespace drive |
| 68 | 68 |
| 69 #endif // CHROME_BROWSER_DRIVE_EVENT_LOGGER_H_ | 69 #endif // COMPONENTS_DRIVE_EVENT_LOGGER_H_ |
| OLD | NEW |