| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_DRIVE_EVENT_LOGGER_H_ | 5 #ifndef COMPONENTS_DRIVE_EVENT_LOGGER_H_ |
| 6 #define COMPONENTS_DRIVE_EVENT_LOGGER_H_ | 6 #define COMPONENTS_DRIVE_EVENT_LOGGER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <deque> | 10 #include <deque> |
| 9 #include <string> | 11 #include <string> |
| 10 #include <vector> | 12 #include <vector> |
| 11 | 13 |
| 12 #include "base/basictypes.h" | |
| 13 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 14 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/macros.h" |
| 15 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
| 16 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 17 | 19 |
| 18 namespace drive { | 20 namespace drive { |
| 19 | 21 |
| 20 // The default history size used by EventLogger. | 22 // The default history size used by EventLogger. |
| 21 const int kDefaultHistorySize = 1000; | 23 const int kDefaultHistorySize = 1000; |
| 22 | 24 |
| 23 // EventLogger is used to collect and expose text messages for diagnosing | 25 // EventLogger is used to collect and expose text messages for diagnosing |
| 24 // behaviors of Google APIs stuff. For instance, the collected messages are | 26 // behaviors of Google APIs stuff. For instance, the collected messages are |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 size_t history_size_; // guarded by lock_. | 63 size_t history_size_; // guarded by lock_. |
| 62 int next_event_id_; // guarded by lock_. | 64 int next_event_id_; // guarded by lock_. |
| 63 base::Lock lock_; | 65 base::Lock lock_; |
| 64 | 66 |
| 65 DISALLOW_COPY_AND_ASSIGN(EventLogger); | 67 DISALLOW_COPY_AND_ASSIGN(EventLogger); |
| 66 }; | 68 }; |
| 67 | 69 |
| 68 } // namespace drive | 70 } // namespace drive |
| 69 | 71 |
| 70 #endif // COMPONENTS_DRIVE_EVENT_LOGGER_H_ | 72 #endif // COMPONENTS_DRIVE_EVENT_LOGGER_H_ |
| OLD | NEW |